Class SoTextureUnitElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoAccumulatedElement
-
- com.openinventor.inventor.elements.SoTextureUnitElement
-
public class SoTextureUnitElement extends SoAccumulatedElement
Stores the current texture unit identifier. This element stores the the current texture unit identifier.- See Also:
SoTextureUnit
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static int
getMaxTextureUnit()
Calls getMaxTextureUnit((com.openinventor.inventor.misc.SoState)null).static int
getMaxTextureUnit(SoState state)
Returns the maximum texture units.void
pop(SoState name_23237, SoElement prevTopElement)
Pop method.void
push(SoState state)
Overridespush()
method to copy values from next instance in the stack.static void
set(SoState state, SoNode node, int unit)
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 Detail
-
getMaxTextureUnit
public static int getMaxTextureUnit()
Calls getMaxTextureUnit((com.openinventor.inventor.misc.SoState)null).
-
activateTextureUnit
public static boolean activateTextureUnit(SoState state, int unit)
Activates the current texture if it exists. Returned value indicates if it is successful.
-
getActiveTextureUnit
public static int getActiveTextureUnit(SoState state)
Returns the current active texture unit (the last texture unit set).
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
getMaxTextureUnit
public static int getMaxTextureUnit(SoState state)
Returns the maximum texture units.
-
push
public void push(SoState state)
Overridespush()
method to copy values from next instance in the stack.- Overrides:
push
in classSoAccumulatedElement
-
-