Stores the current texture unit identifier. More...
#include <Inventor/elements/SoTextureUnitElement.h>
Public Member Functions | |
virtual void | push (SoState *state) |
Overrides push() method to copy values from next instance in the stack. | |
virtual void | pop (SoState *, const SoElement *prevTopElement) |
Pop method. | |
Public Member Functions inherited from SoAccumulatedElement | |
virtual void | print (FILE *fp) const |
Prints element (for debugging). | |
Public Member Functions inherited from SoElement | |
virtual SoType | getTypeId () const |
Returns type identifier for element instance. | |
Public Member Functions inherited from SoTypedObject | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
static void | set (SoState *state, SoNode *node, int unit) |
Sets the current texture unit. | |
static SbBool | activateTextureUnit (SoState *state, int unit) |
Activates the current texture if it exists. | |
static const SbIntList & | getTextureUnits (SoState *state) |
Returns the current list texture units. | |
static int | getActiveTextureUnit (SoState *state) |
Returns the current active texture unit (the last texture unit set). | |
static int | getMaxTextureUnit (SoState *state=NULL) |
Returns the maximum texture units. | |
static SbBool | isMultiTexturing (SoState *state, SbIntList &imageTexUnitList) |
Returns TRUE if the multi-texturing is active: i.e., at least 2 texture units are defined. | |
Static Public Member Functions inherited from SoAccumulatedElement | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
Static Public Member Functions inherited from SoElement | |
static SoType | getClassTypeId () |
Returns type identifier for SoElement class. | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Stores the current texture unit identifier.
This element stores the the current texture unit identifier.
Definition at line 47 of file SoTextureUnitElement.h.
Activates the current texture if it exists.
Returned value indicates if it is successful.
|
static |
Returns the current active texture unit (the last texture unit set).
|
static |
Returns the stack id for this element.
|
static |
Returns the type identifier for this class.
|
static |
Returns the maximum texture units.
Returns the current list texture units.
|
static |
Returns TRUE if the multi-texturing is active: i.e., at least 2 texture units are defined.
Returns also the list of units.
Pop method.
Reimplemented from SoElement.
|
virtual |
Overrides push() method to copy values from next instance in the stack.
Reimplemented from SoAccumulatedElement.
Sets the current texture unit.