MeVisLab Toolbox Reference
mlGLContext.h File Reference
#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...
 

Macros

#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.
 

Macro Definition Documentation

◆ CREATE_AND_ACTIVATE_GLCONTEXT

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

Deprecated, use GLContextStack::createTemporaryContextAndActivate() instead.

Definition at line 82 of file mlGLContext.h.

◆ DESTROY_GLCONTEXT_AND_ACTIVATE_PREVIOUS

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

Deprecated, use GLContextStack::destroyTemporaryContextAndActivatePreviousContext() instead.

Definition at line 86 of file mlGLContext.h.