Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

TexGen Class Reference
[Scene Graph]

#include <lvt/Texture.h>

Inheritance diagram for TexGen:

Inheritance graph
[legend]
List of all members.

Detailed Description

Controls texture coordinate generation.


Public Member Functions

GLenum GetMode (GLenum coord)
 Returns the texgen mode of the specified coordinate.
virtual void Render ()
 Enables texture coordinate generation.
void SetMode (GLenum coord, GLenum mode)
 Sets the texgen mode for the specified coordinate.
void SetPlane (GLenum coord, const Vec &v)
 Sets the plane equation for the specified coordinate.


Member Function Documentation

GLenum GetMode GLenum  coord  ) 
 

Returns the texgen mode of the specified coordinate.

Parameters:
coord one of GL_S, GL_T, GL_R, or GL_Q

virtual void Render  )  [virtual]
 

Enables texture coordinate generation.

Implements TextureState.

void SetMode GLenum  coord,
GLenum  mode
 

Sets the texgen mode for the specified coordinate.

Parameters:
coord one of GL_S, GL_T, GL_R, or GL_Q
mode one of GL_EYE_LINEAR, GL_OBJECT_LINEAR, GL_SPHERE_MAP, or, if supported, GL_REFLECTION_MAP_ARB, or GL_NORMAL_MAP_ARB

void SetPlane GLenum  coord,
const Vec v
 

Sets the plane equation for the specified coordinate.


Generated on Thu Feb 17 09:45:48 2005 for liblvt by  doxygen 1.4.1