Open Inventor Reference
|
Element that changes the current draw style in GL. More...
#include <Inventor/elements/SoGLDrawStyleElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual void | push (SoState *state) |
Override push() so we can remember the previous element's draw style, and perhaps avoid sending unnecessary GL calls if this element is the same. | |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Override pop() method so side effects can occur in GL. | |
Static Public Member Functions | |
static void | initClass () |
Initializes the SoGLDrawStyleElement class. | |
Protected Member Functions | |
virtual void | setElt (int32_t style) |
Sets the draw style in an instance. Has GL side effects. | |
virtual | ~SoGLDrawStyleElement () |
Overrides the virtual methods on SoDrawStyleElement to send the draw style to GL when necessary.
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.
Definition at line 78 of file SoGLDrawStyleElement.h.
virtual SoGLDrawStyleElement::~SoGLDrawStyleElement | ( | ) | [protected, virtual] |
virtual void SoGLDrawStyleElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoDrawStyleElement.
static void SoGLDrawStyleElement::initClass | ( | ) | [static] |
Reimplemented from SoDrawStyleElement.
virtual void SoGLDrawStyleElement::pop | ( | SoState * | state, |
const SoElement * | prevTopElement | ||
) | [virtual] |
Reimplemented from SoElement.
virtual void SoGLDrawStyleElement::setElt | ( | int32_t | style | ) | [protected, virtual] |
Reimplemented from SoInt32Element.