|
MeVisLab Resolution Independence API
|
#include <SoGlobalGLContextScope.h>
Public Member Functions | |
| 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. | |
Static Public Member Functions | |
| static int | getGlobalShareID () |
| Returns the global Open Inventor context share ID, which is required for GLRender actions. | |
| static void | registerSoQtGLWidgetGLContextCallbacks () |
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.
Definition at line 35 of file SoGlobalGLContextScope.h.
| SoGlobalGLContextScope::SoGlobalGLContextScope | ( | ) |
Stores the current GL context and activates the global shared Open Inventor GL context.
Referenced by registerSoQtGLWidgetGLContextCallbacks().
| SoGlobalGLContextScope::~SoGlobalGLContextScope | ( | ) |
Activates the previous stored GL context.
| void SoGlobalGLContextScope::deactivate | ( | ) |
Activates the previous stored GL context (same as destructor).
|
static |
Returns the global Open Inventor context share ID, which is required for GLRender actions.
| int SoGlobalGLContextScope::getShareID | ( | ) |
Returns the Open Inventor context share ID, which is required for GLRender actions.
|
static |
References SoGlobalGLContextScope().