MeVisLabToolboxReference
MeVis/Foundation/Sources/MLOpenGL/mlGLContext.h File Reference

Platform independent interface class to manage an OpenGL context. More...

#include "mlOpenGLSystem.h"
#include "mlOpenGL.h"

Go to the source code of this file.

Classes

class  GLContextStack
 Manages a stack of GL contexts and their correct activation (NOTE: This is only accessible in the GUI main thread!) More...
class  GLContextStack::TemporaryGLContextScope
 Creates a temporary OpenGL context and destroys it when the object goes out of scope. More...
class  GLContextStack::StoreCurrentGLContextScope
 Stores the current GL context and re-activates it when the scope object is deleted. More...

Defines

#define CREATE_AND_ACTIVATE_GLCONTEXT   ML_OPENGL_NAMESPACE::GLContextStack::createTemporaryContextAndActivate();
 Deprecated, use GLContextStack::createTemporaryContextAndActivate() instead.
#define DESTROY_GLCONTEXT_AND_ACTIVATE_PREVIOUS   ML_OPENGL_NAMESPACE::GLContextStack::destroyTemporaryContextAndActivatePreviousContext();
 Deprecated, use GLContextStack::destroyTemporaryContextAndActivatePreviousContext() instead.

Detailed Description

Platform independent interface class to manage an OpenGL context.

Author:
Felix Ritter
Date:
12/2006

Definition in file mlGLContext.h.


Define Documentation

#define CREATE_AND_ACTIVATE_GLCONTEXT   ML_OPENGL_NAMESPACE::GLContextStack::createTemporaryContextAndActivate();

Deprecated, use GLContextStack::createTemporaryContextAndActivate() instead.

Definition at line 78 of file mlGLContext.h.

#define DESTROY_GLCONTEXT_AND_ACTIVATE_PREVIOUS   ML_OPENGL_NAMESPACE::GLContextStack::destroyTemporaryContextAndActivatePreviousContext();

Deprecated, use GLContextStack::destroyTemporaryContextAndActivatePreviousContext() instead.

Definition at line 82 of file mlGLContext.h.