#include <lvt/Texture.h>
Inheritance diagram for TextureState:
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. |
|
Returns the texture unit that the TextureState object affects.
|
|
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. |
|
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. |