Changes the current draw style in GL. More...
#include <Inventor/elements/SoGLDrawStyleElement.h>
Public Member Functions | |
virtual void | push (SoState *state) |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
Changes the current draw style in GL.
This element changes the current draw style in GL. Overrides the virtual methods on SoDrawStyleElement to send the draw style to GL when necessary.
NOTE: This class does not exist in Open Inventor 10.0 and later.Note that this class relies on SoDrawStyleElement to store the style in the instance.
Also note that this tells GL only how to draw polygons. Shapes that contain lines still have to check for POINTS draw styles and act accordingly.
static int SoGLDrawStyleElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoDrawStyleElement.
Reimplemented in SoGLShadowStyleElement.
static SoType SoGLDrawStyleElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoDrawStyleElement.
Reimplemented in SoGLShadowStyleElement.
virtual void SoGLDrawStyleElement::pop | ( | SoState * | state, | |
const SoElement * | prevTopElement | |||
) | [virtual] |
Overrides pop() method so side effects can occur in GL.
Reimplemented in SoGLShadowStyleElement.
virtual void SoGLDrawStyleElement::push | ( | SoState * | state | ) | [virtual] |
Overrides push() so we can remember the previous element's draw style, and perhaps avoid sending unnecessary GL calls if this element is the same.
Reimplemented from SoElement.
Reimplemented in SoGLShadowStyleElement.