The SoGlobalGLContextScope can be used to automatically push and pop the current GL context,...
SoGlobalGLContextScope()
Stores the current GL context and activates the global shared Open Inventor GL context.
int getShareID()
Returns the Open Inventor context share ID, which is required for GLRender actions.
static void registerSoQtGLWidgetGLContextCallbacks()
static int getGlobalShareID()
Returns the global Open Inventor context share ID, which is required for GLRender actions.
void deactivate()
Activates the previous stored GL context (same as destructor).
~SoGlobalGLContextScope()
Activates the previous stored GL context.