Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoTextureUnitElement Class Reference

VSG extension Stores the current texture unit identifier. More...

#include <Inventor/elements/SoTextureUnitElement.h>

+ Inheritance diagram for SoTextureUnitElement:

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.
 

Detailed Description

VSG extension Stores the current texture unit identifier.

This element stores the the current texture unit identifier.

SEE ALSO

SoTextureUnit

Definition at line 47 of file SoTextureUnitElement.h.

Member Function Documentation

◆ activateTextureUnit()

static SbBool SoTextureUnitElement::activateTextureUnit ( SoState state,
int  unit 
)
static

Activates the current texture if it exists.

Returned value indicates if it is successful.

◆ getActiveTextureUnit()

static int SoTextureUnitElement::getActiveTextureUnit ( SoState state)
static

Returns the current active texture unit (the last texture unit set).

◆ getClassStackIndex()

static int SoTextureUnitElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoTextureUnitElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getMaxTextureUnit()

static int SoTextureUnitElement::getMaxTextureUnit ( SoState state = NULL)
static

Returns the maximum texture units.

◆ getTextureUnits()

static const SbIntList & SoTextureUnitElement::getTextureUnits ( SoState state)
static

Returns the current list texture units.

◆ isMultiTexturing()

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()

virtual void SoTextureUnitElement::pop ( SoState ,
const SoElement prevTopElement 
)
virtual

Pop method.

Reimplemented from SoElement.

◆ push()

virtual void SoTextureUnitElement::push ( SoState state)
virtual

Overrides push() method to copy values from next instance in the stack.

Reimplemented from SoAccumulatedElement.

◆ set()

static void SoTextureUnitElement::set ( SoState state,
SoNode node,
int  unit 
)
static

Sets the current texture unit.


The documentation for this class was generated from the following file: