47SoEXTENDER_Documented 
class  SoTextureUnitElement : 
public SoAccumulatedElement {
 
   48  SO_ELEMENT_HEADER(SoTextureUnitElement) ;
 
   69  virtual void pop(
SoState *, 
const SoElement *prevTopElement) ;
 
   95  virtual void commonInit();
 
   98  virtual void init(
SoState *state);
 
  103  static void initClass() ;
 
  104  static void exitClass() ;
 
  109  static uint32_t getFixedPipelineMaxTextureUnit(
SoState* state) ;
 
  114  static bool isActiveTextureUnitInFixedPipeline(
SoState* state);
 
  124  virtual void setElt(
SoState* state, 
SoNode *node, 
const int unit) ;
 
  125  virtual void setUnit(
SoState* state, 
const int unit);
 
  131  SbIntList m_textureUnits ;
 
  133  virtual ~SoTextureUnitElement() ;
 
  135  virtual SbBool matches(
const SoElement* element) 
const;
 
  136  virtual SoElement* copyMatchInfo() 
const;
 
  140  static SbBool s_multiTexturingAllowed;
 
 
static void set(SoState *state, SoNode *node, int unit)
Sets the current texture unit.
 
static const SbIntList & getTextureUnits(SoState *state)
Returns the current list texture units.
 
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
 
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 SbBool activateTextureUnit(SoState *state, int unit)
Activates the current texture if it exists.
 
virtual void pop(SoState *, const SoElement *prevTopElement)
Pop method.
 
static int getActiveTextureUnit(SoState *state)
Returns the current active texture unit (the last texture unit set).