public class SoTextureEnabledElement extends SoReplacedTextureElement
This element is set by the GLTextureImageElement and the GLTextureImageElement, but the interaction between the three elements is a little complicated. Each of the other two elements always sets up the GL texture state appropriately, however, texturing is only enabled if both elements agree that it should be enabled (they check each other's value before calling set).
This element cannot be overridden, but, since the elements that set it check each other's value, overriding those elements has the same effect.
See also:
SoTexture2
, SoExtTexture2
, SoImageBackground
, SoTextureCubeMapEnabledElement
, SoTexture3EnabledElement
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static boolean |
get(SoState state)
Calls get(state, (int)0).
|
static boolean |
get(SoState state,
int unit)
Used by shapes to figure out if they need to send texture coordinates.
|
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
static boolean |
getDefault()
By default there is no texture.
|
void |
pop(SoState state,
SoElement prevTopElement)
Overrides
pop() method so side effects can occur in GL. |
void |
push(SoState state)
Overrides
push() so we can remember previous element's value and avoid making GL calls if this element has the same value. |
static void |
set(SoState state,
boolean value)
Calls set(state, value, (com.openinventor.inventor.nodes.SoNode)null).
|
static void |
set(SoState state,
boolean value,
SoNode node)
Used by GLTextureImageElement, set to true when a non-null image is set, set to false when there is no texture image (the default).
|
getClassStackIndex
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public static boolean get(SoState state)
public static void set(SoState state, boolean value)
public static boolean getDefault()
public static void set(SoState state, boolean value, SoNode node)
public static boolean get(SoState state, int unit)
public void push(SoState state)
push()
so we can remember previous element's value and avoid making GL calls if this element has the same value.push
in class SoReplacedTextureElement
public void pop(SoState state, SoElement prevTopElement)
pop()
method so side effects can occur in GL.@Deprecated public static int getClassStackIndex()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com