Class SoTextureUnitElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoAccumulatedElement
com.openinventor.inventor.elements.SoTextureUnitElement
Stores the current texture unit identifier.
This element stores the the current texture unit identifier.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanactivateTextureUnit(SoState state, int unit) Activates the current texture if it exists.static intgetActiveTextureUnit(SoState state) Returns the current active texture unit (the last texture unit set).static intDeprecated.As of Open Inventor 9.3.0.0.static intCalls getMaxTextureUnit((com.openinventor.inventor.misc.SoState)null).static intgetMaxTextureUnit(SoState state) Returns the maximum texture units.voidPop method.voidOverridespush()method to copy values from next instance in the stack.static voidSets the current texture unit.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndexMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getMaxTextureUnit
public static int getMaxTextureUnit()Calls getMaxTextureUnit((com.openinventor.inventor.misc.SoState)null). -
activateTextureUnit
Activates the current texture if it exists. Returned value indicates if it is successful. -
set
Sets the current texture unit. -
getActiveTextureUnit
Returns the current active texture unit (the last texture unit set). -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
getMaxTextureUnit
Returns the maximum texture units. -
push
Overridespush()method to copy values from next instance in the stack.- Overrides:
pushin classSoAccumulatedElement
-
pop
Pop method.
-