Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

MatrixMode Class Reference
[Scene Graph]

#include <lvt/State.h>

Inheritance diagram for MatrixMode:

Inheritance graph
[legend]
List of all members.

Detailed Description

Selects the current OpenGL matrix.


Public Member Functions

bool DoesLoadIdentity () const
 Returns true if the matrix will be cleared to the identity upon being set.
GLenum GetMatrixMode () const
 Returns the matrix that the MatrixMode object will make active upon rendering.
void LoadIdentity (bool ident=true)
 Specifies to the MatrixMode object that the matrix should be cleared to the identity upon being set.
 MatrixMode (GLenum matrix=GL_MODELVIEW, bool ident=false)
 Constructs the MatrixMode object.
virtual void Render ()
 Sets the current matrix mode and loads the identity matrix, if enabled.
void SetMatrixMode (GLenum mode)
 Sets the matrix that the MatrixMode object will make active upon rendering.


Constructor & Destructor Documentation

MatrixMode GLenum  matrix = GL_MODELVIEW,
bool  ident = false
[inline]
 

Constructs the MatrixMode object.

Sets the matrix to GL_MODELVIEW, and does not load the identity matrix on rendering.


Member Function Documentation

bool DoesLoadIdentity  )  const [inline]
 

Returns true if the matrix will be cleared to the identity upon being set.

GLenum GetMatrixMode  )  const [inline]
 

Returns the matrix that the MatrixMode object will make active upon rendering.

void LoadIdentity bool  ident = true  )  [inline]
 

Specifies to the MatrixMode object that the matrix should be cleared to the identity upon being set.

Parameters:
ident if true, the matrix will be cleared upon being set.

virtual void Render  )  [virtual]
 

Sets the current matrix mode and loads the identity matrix, if enabled.

Implements State.

void SetMatrixMode GLenum  mode  )  [inline]
 

Sets the matrix that the MatrixMode object will make active upon rendering.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1