MeVisLab Resolution Independence API
mlGLContext.h File Reference
#include "mlOpenGLSystem.h"
#include "mlOpenGL.h"

Go to the source code of this file.

Classes

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

Namespaces

namespace  ml
 Platform independent interface class to manage an OpenGL context.
 

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.