Stores the current GL context and re-activates it when the scope object is deleted.
Creates a temporary OpenGL context and destroys it when the object goes out of scope.
Manages a stack of GL contexts and their correct activation.
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...
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.