public class SoTextureUnitElement extends SoAccumulatedElement
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoTextureUnitElement.MappingMethods
MappingMethod.
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static boolean |
activateTextureUnit(SoState state,
int unit)
Activates the current texture if it exists.
|
static SoTextureUnitElement.MappingMethods |
getActiveMappingMethod(SoState state)
Returns the current active mapping method according to the current texture unit.
|
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 replaced by SoElement.getClassStackIndex(Class)
|
static int |
getMaxTextureUnit()
Calls getMaxTextureUnit((com.openinventor.inventor.misc.SoState)null).
|
static int |
getMaxTextureUnit(SoState state)
Returns the maximum texture units.
|
static int |
isImageMapping(SoState state)
Indicate if one unit among the current unit list corresponds to an IMAGE_MAPPING.
|
void |
pop(SoState name_23713,
SoElement prevTopElement)
Pop method.
|
void |
push(SoState state)
Overrides
push() method to copy values from next instance in the stack. |
static void |
set(SoState state,
SoNode node,
int unit,
SoTextureUnitElement.MappingMethods mappingMethod)
Sets the current texture unit and mapping method.
|
getClassStackIndex
dispose, getNativeResourceHandle
public static int getMaxTextureUnit()
public static boolean activateTextureUnit(SoState state, int unit)
public static int getActiveTextureUnit(SoState state)
@Deprecated public static int getClassStackIndex()
public static void set(SoState state, SoNode node, int unit, SoTextureUnitElement.MappingMethods mappingMethod)
public static int isImageMapping(SoState state)
public static int getMaxTextureUnit(SoState state)
public void push(SoState state)
push()
method to copy values from next instance in the stack.push
in class SoAccumulatedElement
public static SoTextureUnitElement.MappingMethods getActiveMappingMethod(SoState state)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com