Manages the GL state for the SoLazyElement. More...
#include <Inventor/elements/SoGLLazyElement.h>
Public Member Functions | |
virtual void | push (SoState *state) |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
void | sendDiffuseByIndex (int index) const |
void | reset (SoState *state, uint32_t bitmask) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | sendAllMaterial (SoState *state) |
static void | sendNoMaterial (SoState *state) |
static void | sendOnlyDiffuseColor (SoState *state) |
static SoGLLazyElement * | getInstance (const SoState *state) |
Manages the GL state for the SoLazyElement.
This element manages the GL state for the SoLazyElement.
Note that this class relies on SoLazyElement to store the Open Inventor color(s), etc. in the instance. This element keeps GL shadow copies of colors.
static int SoGLLazyElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoLazyElement.
static SoType SoGLLazyElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoLazyElement.
static SoGLLazyElement* SoGLLazyElement::getInstance | ( | const SoState * | state | ) | [inline, static] |
Returns the top (current) instance of the element in the state Note it does NOT cause cache dependency! It also casts away the const.
Overrides pop() method to maintain GL state.
virtual void SoGLLazyElement::push | ( | SoState * | state | ) | [virtual] |
Overrides push() method to maintain GL state.
Reimplemented from SoLazyElement.
void SoGLLazyElement::reset | ( | SoState * | state, | |
uint32_t | bitmask | |||
) | const |
Destroys knowledge of GL state.
static void SoGLLazyElement::sendAllMaterial | ( | SoState * | state | ) | [inline, static] |
Static send, always send top-of-stack.
Intended for extender use.
void SoGLLazyElement::sendDiffuseByIndex | ( | int | index | ) | const |
Sends diffuse color and transparency, by index.
Included for compatibility with SoMaterialBundle. To be used by a shape to send additional colors after first send(). Should NEVER be the first send of a shape!
static void SoGLLazyElement::sendNoMaterial | ( | SoState * | state | ) | [inline, static] |
Static send, always send top-of-stack.
Intended for extender use.
static void SoGLLazyElement::sendOnlyDiffuseColor | ( | SoState * | state | ) | [inline, static] |
Static send, always send top-of-stack.
Intended for extender use.