The SoGlobalGLContextScope can be used to automatically push and pop the current GL context, and to enable a shared global Open Inventor GL context inside of the scope.
More...
#include <SoGlobalGLContextScope.h>
|
| SoGlobalGLContextScope () |
| Stores the current GL context and activates the global shared Open Inventor GL context.
|
|
| ~SoGlobalGLContextScope () |
| Activates the previous stored GL context.
|
|
void | deactivate () |
| Activates the previous stored GL context (same as destructor).
|
|
int | getShareID () |
| Returns the Open Inventor context share ID, which is required for GLRender actions.
|
|
The SoGlobalGLContextScope can be used to automatically push and pop the current GL context, and to enable a shared global Open Inventor GL context inside of the scope.
{
}
The SoGlobalGLContextScope can be used to automatically push and pop the current GL context,...
Definition at line 35 of file SoGlobalGLContextScope.h.
◆ SoGlobalGLContextScope()
SoGlobalGLContextScope::SoGlobalGLContextScope |
( |
| ) |
|
Stores the current GL context and activates the global shared Open Inventor GL context.
◆ ~SoGlobalGLContextScope()
SoGlobalGLContextScope::~SoGlobalGLContextScope |
( |
| ) |
|
Activates the previous stored GL context.
◆ deactivate()
void SoGlobalGLContextScope::deactivate |
( |
| ) |
|
Activates the previous stored GL context (same as destructor).
◆ getGlobalShareID()
static int SoGlobalGLContextScope::getGlobalShareID |
( |
| ) |
|
|
static |
Returns the global Open Inventor context share ID, which is required for GLRender actions.
◆ getShareID()
int SoGlobalGLContextScope::getShareID |
( |
| ) |
|
Returns the Open Inventor context share ID, which is required for GLRender actions.
◆ registerSoQtGLWidgetGLContextCallbacks()
static void SoGlobalGLContextScope::registerSoQtGLWidgetGLContextCallbacks |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: