SoGLTextureEnabledElement Class |
Note: This API is now obsolete.
Enables/disables textures.
Namespace: OIV.Inventor.Elements
The SoGLTextureEnabledElement type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetClassStackIndex | Obsolete. Returns the stack id for this element. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Pop | Overrides pop() method so side effects can occur in GL. |
![]() | Push | Overrides push() so we can remember previous element's value and avoid making GL calls if this element has the same value. |
![]() | Send | |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This element enables/disables textures. This is implemented as a separate element from the TextureImageElement so the texture image can be changed without blowing 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.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This is set by the GLTextureImageElement and the GLTextureImageElement; the interaction between the three 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.