Files Classes Functions Hierarchy
#include <graphmisc.h>
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. | |
Use with named variables so when the object goes out of scope the destructor is called.
Definition at line 86 of file graphmisc.h.
| 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); }
| GLint myglPushMatrixMode::mode |
The mode when the object was constructed.
Definition at line 91 of file graphmisc.h.
Referenced by myglPushMatrixMode(), and ~myglPushMatrixMode().
1.5.8