NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Public Attributes | List of all members
niftk::ScopedOGLContext Struct Reference

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
 

Detailed Description

Utility class to activate a given OpenGL context, and restore the previous one on scope-exit.

Constructor & Destructor Documentation

niftk::ScopedOGLContext::ScopedOGLContext ( QGLContext *  newctx)
niftk::ScopedOGLContext::~ScopedOGLContext ( )

Member Data Documentation

QGLContext* niftk::ScopedOGLContext::m_Ourctx
QGLContext* niftk::ScopedOGLContext::m_Prevctx

The documentation for this struct was generated from the following files: