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 boolean
activateTextureUnit
(SoState state, int unit) Activates the current texture if it exists.static int
getActiveTextureUnit
(SoState state) Returns the current active texture unit (the last texture unit set).static int
Deprecated.As of Open Inventor 9.3.0.0.static int
Calls getMaxTextureUnit((com.openinventor.inventor.misc.SoState)null).static int
getMaxTextureUnit
(SoState state) Returns the maximum texture units.void
Pop method.void
Overridespush()
method to copy values from next instance in the stack.static void
Sets the current texture unit.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex
Methods 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:
push
in classSoAccumulatedElement
-
pop
Pop method.
-