Stores the current GL context and re-activates it when the scope object is deleted.
 
StoreCurrentGLContextScope()
 
~StoreCurrentGLContextScope()
 
Creates a temporary OpenGL context and destroys it when the object goes out of scope.
 
TemporaryGLContextScope()
 
~TemporaryGLContextScope()
 
Manages a stack of GL contexts and their correct activation.
 
static void pushCurrentContext()
Pushes the current OpenGL context (detected via a 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,...
 
static void destroyTemporaryContextAndActivatePreviousContext()
Destroys the temporary context created via createTemporaryContextAndActivate() and pops/activates the...