SoGLTextureEnabledElement Class Reference
[Elements]

Enables/disables textures. More...

#include <Inventor/elements/SoGLTextureEnabledElement.h>

Inheritance diagram for SoGLTextureEnabledElement:
SoTextureEnabledElement SoReplacedTextureElement SoElement SoTypedObject

List of all members.

Public Member Functions

virtual void pop (SoState *state, const SoElement *prevTopElement)
void send (SoState *state, SbBool value)

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()

Detailed Description

Enables/disables textures.

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.

NOTE: 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.

SEE ALSO

SoTexture2, SoExtTexture2, SoImageBackground, SoGLTextureCubeMapEnabledElement, SoGLTexture3EnabledElement

Deprecated:

Deprecated since Open Inventor 9620
SoGLTextureEnabledElement is no longer supported, use equivalent SoTextureEnabledElement

Member Function Documentation

static int SoGLTextureEnabledElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoTextureEnabledElement.

static SoType SoGLTextureEnabledElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoTextureEnabledElement.

virtual void SoGLTextureEnabledElement::pop ( SoState state,
const SoElement prevTopElement 
) [virtual]

Overrides pop() method so side effects can occur in GL.

Reimplemented from SoTextureEnabledElement.

void SoGLTextureEnabledElement::send ( SoState state,
SbBool  value 
)

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/