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

TextureState Class Reference
[Scene Graph]

#include <lvt/Texture.h>

Inheritance diagram for TextureState:

Inheritance graph
[legend]
List of all members.

Detailed Description

Abstract base class for objects affecting the current texture state.


Public Member Functions

int GetTextureUnit () const
 Returns the texture unit that the TextureState object affects.
virtual void Render ()=0
 Activates the State.
void SetTextureUnit (int unit)
 Sets the texture unit that the TextureState object affects.


Member Function Documentation

int GetTextureUnit  )  const [inline]
 

Returns the texture unit that the TextureState object affects.

virtual void Render  )  [pure virtual]
 

Activates the State.

If the State is enabled, the corresponding piece of OpenGL state is enabled and its value is set, if appropriate. If the State object is disabled, the corresponding piece of OpenGL state is disabled.

Implements State.

Implemented in TexGen, TexEnv, Texture, Texture1D, and Texture2D.

void SetTextureUnit int  unit  )  [inline]
 

Sets the texture unit that the TextureState object affects.

By default, and if multi-texture is not supported, the object is bound to texture unit 0.


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