# Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics

[Home] [Tutorials] [All Classes] [Grouped Classes]

# vl::TexGen Class Reference

Wraps the OpenGL function glTexGen(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml for more information. More...

`#include <Shader.hpp>`

Inheritance diagram for vl::TexGen:

List of all members.

## Public Member Functions

| TexGen (int texunit)
| The eye and object planes are not transformed by any matrix (unlike usually with OpenGL), which means that the object plane is specified in object coordinates and that, the eye plane is specified in camera coordinates.
virtual const char * | className ()
| Returns the name of the class.
virtual ERenderState | type () const
virtual void | apply (const Camera *) const
void | setEyePlaneS (fvec4 plane)
void | setObjectPlaneS (fvec4 plane)
void | setGenModeS (ETexGenMode mode)
fvec4 | eyePlaneS () const
fvec4 | objectPlaneS () const
ETexGenMode | genModeS () const
void | setEyePlaneT (fvec4 plane)
void | setObjectPlaneT (fvec4 plane)
void | setGenModeT (ETexGenMode mode)
fvec4 | eyePlaneT () const
fvec4 | objectPlaneT () const
ETexGenMode | genModeT () const
void | setEyePlaneR (fvec4 plane)
void | setObjectPlaneR (fvec4 plane)
void | setGenModeR (ETexGenMode mode)
fvec4 | eyePlaneR () const
fvec4 | objectPlaneR () const
ETexGenMode | genModeR () const
void | setEyePlaneQ (fvec4 plane)
void | setObjectPlaneQ (fvec4 plane)
void | setGenModeQ (ETexGenMode mode)
fvec4 | eyePlaneQ () const
fvec4 | objectPlaneQ () const
ETexGenMode | genModeQ () const

## Public Attributes

fvec4 | mEyePlaneS
fvec4 | mObjectPlaneS
fvec4 | mEyePlaneT
fvec4 | mObjectPlaneT
fvec4 | mEyePlaneR
fvec4 | mObjectPlaneR
fvec4 | mEyePlaneQ
fvec4 | mObjectPlaneQ
ETexGenMode | mGenModeS
ETexGenMode | mGenModeT
ETexGenMode | mGenModeR
ETexGenMode | mGenModeQ

## Detailed Description

Wraps the OpenGL function glTexGen(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml for more information.

Note:
  A TexParameter defines a set of variables associated to a Texture while TexGen and TexEnv define a set of variables associated to a TextureUnit.

See also:
  Shader, TextureUnit, Texture, TexGen, TexParameter, Effect, Actor

## Constructor & Destructor Documentation

TexGen::TexGen | ( | int | texunit | ) |

The eye and object planes are not transformed by any matrix (unlike usually with OpenGL), which means that the object plane is specified in object coordinates and that, the eye plane is specified in camera coordinates.

## Member Function Documentation

virtual const char* vl::TexGen::className | ( |  | ) | `[inline, virtual]`

Returns the name of the class.

Reimplemented from vl::RenderState.

virtual ERenderState vl::TexGen::type | ( |  | ) | const`[inline, virtual]`

Reimplemented from vl::RenderState.

void TexGen::apply | ( | const Camera * |  | ) | const`[virtual]`

Implements vl::RenderState.

void vl::TexGen::setEyePlaneS | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setObjectPlaneS | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setGenModeS | ( | ETexGenMode | mode | ) | `[inline]`

fvec4 vl::TexGen::eyePlaneS | ( |  | ) | const`[inline]`

fvec4 vl::TexGen::objectPlaneS | ( |  | ) | const`[inline]`

ETexGenMode vl::TexGen::genModeS | ( |  | ) | const`[inline]`

void vl::TexGen::setEyePlaneT | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setObjectPlaneT | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setGenModeT | ( | ETexGenMode | mode | ) | `[inline]`

fvec4 vl::TexGen::eyePlaneT | ( |  | ) | const`[inline]`

fvec4 vl::TexGen::objectPlaneT | ( |  | ) | const`[inline]`

ETexGenMode vl::TexGen::genModeT | ( |  | ) | const`[inline]`

void vl::TexGen::setEyePlaneR | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setObjectPlaneR | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setGenModeR | ( | ETexGenMode | mode | ) | `[inline]`

fvec4 vl::TexGen::eyePlaneR | ( |  | ) | const`[inline]`

fvec4 vl::TexGen::objectPlaneR | ( |  | ) | const`[inline]`

ETexGenMode vl::TexGen::genModeR | ( |  | ) | const`[inline]`

void vl::TexGen::setEyePlaneQ | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setObjectPlaneQ | ( | fvec4 | plane | ) | `[inline]`

void vl::TexGen::setGenModeQ | ( | ETexGenMode | mode | ) | `[inline]`

fvec4 vl::TexGen::eyePlaneQ | ( |  | ) | const`[inline]`

fvec4 vl::TexGen::objectPlaneQ | ( |  | ) | const`[inline]`

ETexGenMode vl::TexGen::genModeQ | ( |  | ) | const`[inline]`

## Member Data Documentation

fvec4 vl::TexGen::mEyePlaneS

fvec4 vl::TexGen::mObjectPlaneS

fvec4 vl::TexGen::mEyePlaneT

fvec4 vl::TexGen::mObjectPlaneT

fvec4 vl::TexGen::mEyePlaneR

fvec4 vl::TexGen::mObjectPlaneR

fvec4 vl::TexGen::mEyePlaneQ

fvec4 vl::TexGen::mObjectPlaneQ

ETexGenMode vl::TexGen::mGenModeS

ETexGenMode vl::TexGen::mGenModeT

ETexGenMode vl::TexGen::mGenModeR

ETexGenMode vl::TexGen::mGenModeQ

The documentation for this class was generated from the following files:

- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Shader.hpp
- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Shader.cpp

Visualization Library v2009.07 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Mon Aug 10 21:41:41 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.