MeVisLab Toolbox Reference
|
Manages a stack of GL contexts and their correct activation (NOTE: This is only accessible in the GUI main thread!) More...
#include <mlGLContext.h>
Classes | |
class | StoreCurrentGLContextScope |
Stores the current GL context and re-activates it when the scope object is deleted. More... | |
class | TemporaryGLContextScope |
Creates a temporary OpenGL context and destroys it when the object goes out of scope. More... | |
Static Public Member Functions | |
static void | pushCurrentContext () |
pushes the current OpenGL context (detected via platform specific state) to the stack | |
static void | popCurrentContext () |
pops the previously pushed context and activates it | |
static void | createTemporaryContextAndActivate () |
Pushes the current context and creates and activates a new temporary OpenGL context which may be used to query GL capabilities. | |
static void | destroyTemporaryContextAndActivatePreviousContext () |
Destroys the temporary context created via createTemporaryContextAndActivate() and pops/activates the previous context. | |
Manages a stack of GL contexts and their correct activation (NOTE: This is only accessible in the GUI main thread!)
Definition at line 27 of file mlGLContext.h.
Pushes the current context and creates and activates a new temporary OpenGL context which may be used to query GL capabilities.
NOTE: This call needs to be paired with a call to destroyTemporaryContextAndActivatePreviousContext() to cleanup the allocated context.
Referenced by GLContextStack::TemporaryGLContextScope::TemporaryGLContextScope().
Destroys the temporary context created via createTemporaryContextAndActivate() and pops/activates the previous context.
Referenced by GLContextStack::TemporaryGLContextScope::~TemporaryGLContextScope().
pops the previously pushed context and activates it
Referenced by GLContextStack::StoreCurrentGLContextScope::~StoreCurrentGLContextScope().
pushes the current OpenGL context (detected via platform specific state) to the stack
Referenced by GLContextStack::StoreCurrentGLContextScope::StoreCurrentGLContextScope().