Class SoTextureCubeMapEnabledElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoReplacedTextureElement
com.openinventor.inventor.elements.SoTextureCubeMapEnabledElement
Enables/disables textureCubeMap.
This element enables/disables textureCubeMap. This is implemented as a separate element from the TextureImageElement so the texture image can be changed without invalidating caches containing shapes shapes need to know if texturing is going on or not so they can decide to send down texture coordinates or not.
This element is very similar to SoTextureEnabledElement but contrary to SoTextureImageElement, we can't deal with the texture2D and the CubeMap texture in the same element.
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:
-
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 voiddisableForShapeCache(SoState state, int unit, boolean disable) Specify that a texture unit is not used by any shape, so we don't have to invalidate cache when this texture is enable/disable/modified.static booleanCalls get(state, (int)0).static booleanUsed by shapes to figure out if they need to send texture coordinates.static intDeprecated.As of Open Inventor 9.3.0.0.static booleanBy default there is no texture.static booleanisDisabledForShapeCache(SoState state, int unit) Return if that texture unit is not used by any shape, so we don't have to invalidate cache when this texture is enable/disable/modified.voidOverridespop()method so side effects can occur in GL.voidOverridespush()so we can remember previous elements value and avoid making GL calls if this element has the same value.static voidCalls set(state, value, (com.openinventor.inventor.nodes.SoNode)null).static voidUsed by GLTextureImageElement, set to true when a non-null image is set, set to false when there is no texture image (the default).Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndexMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
set
Calls set(state, value, (com.openinventor.inventor.nodes.SoNode)null). -
get
Calls get(state, (int)0). -
set
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
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
push
Overridespush()so we can remember previous elements value and avoid making GL calls if this element has the same value.- Overrides:
pushin classSoReplacedTextureElement
-
disableForShapeCache
Specify that a texture unit is not used by any shape, so we don't have to invalidate cache when this texture is enable/disable/modified. -
isDisabledForShapeCache
Return if that texture unit is not used by any shape, so we don't have to invalidate cache when this texture is enable/disable/modified. -
pop
Overridespop()method so side effects can occur in GL. -
get
Used by shapes to figure out if they need to send texture coordinates. -
getDefault
public static boolean getDefault()By default there is no texture.
-