proj home

Files   Classes   Functions   Hierarchy  

myglPushMatrixMode Class Reference

Push and pop the current OpenGL matrix mode. More...

#include <graphmisc.h>

Collaboration diagram for myglPushMatrixMode:

List of all members.

Public Member Functions

 myglPushMatrixMode ()
 Save the current matrix mode.
 ~myglPushMatrixMode ()
 Restore the previous matrix mode.

Public Attributes

GLint mode
 The mode when the object was constructed.


Detailed Description

Push and pop the current OpenGL matrix mode.

Use with named variables so when the object goes out of scope the destructor is called.

Definition at line 86 of file graphmisc.h.


Constructor & Destructor Documentation

myglPushMatrixMode::myglPushMatrixMode (  )  [inline]

Save the current matrix mode.

Definition at line 94 of file graphmisc.h.

References mode.

00095     { glGetIntegerv(GL_MATRIX_MODE, &mode); }

myglPushMatrixMode::~myglPushMatrixMode (  )  [inline]

Restore the previous matrix mode.

Definition at line 98 of file graphmisc.h.

References mode.

00099     { glMatrixMode(mode); }


Member Data Documentation

The mode when the object was constructed.

Definition at line 91 of file graphmisc.h.

Referenced by myglPushMatrixMode(), and ~myglPushMatrixMode().


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

Generated on Fri Mar 4 00:50:07 2011 for Chelton Evans Source by  doxygen 1.5.8