Inheritance diagram for CP_StSetAglContext:
Public Member Functions | |
Constructor / Destructor | |
CP_StSetAglContext (AGLContext inContext) | |
Constructor. | |
~CP_StSetAglContext () throw () | |
Destructor. | |
Private Attributes | |
AGLContext | fSavedAGLContext |
void MyOpenGLDrawing() { CP_StSetAglContext savedAGLContext( fAGLContext ); Draw the OpenGL content here glFlush(); }
In the above example, the current context will be set to fAGLContext, and when the routine ends, the AglContext will be restored to what ever it was when the above function was entered.
|
Constructor.
|
|
Destructor.
|
|
|