55#ifndef _SO_GL_TEXTURE_ENABLED_ELEMENT
56#define _SO_GL_TEXTURE_ENABLED_ELEMENT
100 {
set(state, value); }
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
This is the abstract base class for all state elements.
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 ...
Subclasses store a single int32_t, int, or enum value.
static int32_t get(int stackIndex, SoState *state)
Get value.
static void set(int stackIndex, SoState *state, int32_t value)
Set value.
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.