Element that enables/disables textures.
static void set(SoState *state, SoNode *, bool value)
virtual void init(SoState *state)
Initializes element.
virtual ~SoGLTextureEnabledElement()
static bool get(SoState *state)
Used by shapes to figure out if they need to send texture coordinates:
static void set(SoState *state, bool value)
Used by GLTextureImageElement, set to TRUE when a non-null image is set, set to FALSE when there is n...
virtual void setElt(int32_t value)
Override base class set to make GL calls.
virtual void pop(SoState *state, const SoElement *prevTopElement)
Override pop() method so side effects can occur in GL.
static void initClass()
Initializes the SoGLTextureEnabledElement class.
static bool getDefault()
By default there is not texture.
virtual void push(SoState *state)
Override push() so we can remember previous elements value and avoid making GL calls if this element ...