SoTextureUnitElement Class Reference
[Elements]

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

#include <Inventor/elements/SoTextureUnitElement.h>

Inheritance diagram for SoTextureUnitElement:
SoAccumulatedElement SoElement SoTypedObject

List of all members.

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)

Detailed Description

VSG extension Stores the current texture unit identifier.

This element stores the the current texture unit identifier.

SEE ALSO

SoTextureUnit


Member Function Documentation

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

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.

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

Pop method.

virtual void SoTextureUnitElement::push ( SoState state  )  [virtual]

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

Reimplemented from SoAccumulatedElement.

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:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/