#include <sglStatelet.hpp>
Inheritance diagram for sglTexturingStatelet::
Public Methods | |
sglTexturingStatelet (StateEnum type) | |
virtual | ~sglTexturingStatelet () |
void | apply (sglCurrState *curr_state) const |
virtual void | applyToUnit (sglCurrState *curr_state, unsigned int unit) const=0 |
This class adds a pure virtual applyToTextureUnit() memeber function which the subclasses must implement to apply their OpenGL texture elements to a given texture unit. For systems that do not have more than on texture units, then these applies will revert to simpler OpenGL calls with an implied texture unit of zero (that is, there is no call to set the active texture unit). The apply() method is implemented to direct all texture calls to the first texture unit by default.
Definition at line 2166 of file sglStatelet.hpp.
|
Constructor
Definition at line 2173 of file sglStatelet.hpp. |
|
virtual destructor.
Definition at line 2176 of file sglStatelet.hpp. |
|
Apply this state change to the current rendering state.
Reimplemented from sglStatelet. Definition at line 2179 of file sglStatelet.hpp. |
|
Apply this state change to the current rendering state for the given texture unit.
Reimplemented in sglTextureMatrix, sglTexEnv, sglTexGen, and sglTexture. Referenced by apply(). |