Stores the current texture unit identifier. More...
#include <Inventor/elements/SoTextureUnitElement.h>
Public Member Functions | |
virtual void | push (SoState *state) |
virtual void | pop (SoState *, const SoElement *prevTopElement) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, SoNode *node, int unit) |
static SbBool | activateTextureUnit (SoState *state, int unit) |
static const SbIntList & | getTextureUnits (SoState *state) |
static int | getActiveTextureUnit (SoState *state) |
static int | getMaxTextureUnit (SoState *state=NULL) |
static SbBool | isMultiTexturing (SoState *state, SbIntList &imageTexUnitList) |
This element stores the the current texture unit identifier.
Activates the current texture if it exists.
Returned value indicates if it is successful.
static int SoTextureUnitElement::getActiveTextureUnit | ( | SoState * | state | ) | [static] |
Returns the current active texture unit (the last texture unit set).
static int SoTextureUnitElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoAccumulatedElement.
static SoType SoTextureUnitElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoAccumulatedElement.
static int SoTextureUnitElement::getMaxTextureUnit | ( | SoState * | state = NULL |
) | [static] |
Returns the maximum texture units.
static const SbIntList& SoTextureUnitElement::getTextureUnits | ( | SoState * | state | ) | [static] |
Returns the current list texture units.
static SbBool SoTextureUnitElement::isMultiTexturing | ( | SoState * | state, | |
SbIntList & | imageTexUnitList | |||
) | [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.
virtual void SoTextureUnitElement::push | ( | SoState * | state | ) | [virtual] |
Overrides push() method to copy values from next instance in the stack.
Reimplemented from SoAccumulatedElement.
Sets the current texture unit.