NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Utility class to activate a given OpenGL context, and restore the previous one on scope-exit. More...
Public Member Functions | |
ScopedOGLContext (QGLContext *newctx) | |
~ScopedOGLContext () | |
Public Attributes | |
QGLContext * | m_Prevctx |
QGLContext * | m_Ourctx |
Utility class to activate a given OpenGL context, and restore the previous one on scope-exit.
niftk::ScopedOGLContext::ScopedOGLContext | ( | QGLContext * | newctx | ) |
niftk::ScopedOGLContext::~ScopedOGLContext | ( | ) |
QGLContext* niftk::ScopedOGLContext::m_Ourctx |
QGLContext* niftk::ScopedOGLContext::m_Prevctx |