SoGLDrawStyleElement Class Reference
[Elements]

Changes the current draw style in GL. More...

#include <Inventor/elements/SoGLDrawStyleElement.h>

Inheritance diagram for SoGLDrawStyleElement:
SoDrawStyleElement SoInt32Element SoElement SoTypedObject SoGLShadowStyleElement

List of all members.

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 ()

Detailed Description

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.

SEE ALSO

SoDrawStyleElement

Deprecated:

Deprecated since Open Inventor 9620
SoGLDrawStyleElement is no longer supported, use equivalent SoDrawStyleElement.

Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/