Stores the current model matrix in GL. More...
#include <Inventor/elements/SoGLModelMatrixElement.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 () |
Stores the current model matrix in GL.
This element stores the current model matrix in GL. Overrides the virtual methods on SoModelMatrixElement to send the matrix to GL when necessary.
NOTE: This class does not exist in Open Inventor 10.0 and later.Note that this class relies on SoModelMatrixElement to store the matrix in the instance. This is less expensive in the long run than asking GL for the matrix when it is needed.
Because GL stores the model and view matrices in one matrix, this has to do a little extra work when setting the model matrix to identity or another matrix. (It has to set the GL model-view matrix correctly.)
static int SoGLModelMatrixElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoModelMatrixElement.
static SoType SoGLModelMatrixElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoModelMatrixElement.
virtual void SoGLModelMatrixElement::pop | ( | SoState * | state, | |
const SoElement * | prevTopElement | |||
) | [virtual] |
Overrides pop() method so side effects can occur in GL.
virtual void SoGLModelMatrixElement::push | ( | SoState * | state | ) | [virtual] |
Overrides push() method so side effects can occur in GL.
Reimplemented from SoModelMatrixElement.