OpenSceneGraph
Public Member Functions | Protected Attributes | List of all members
osgViewer::WGL::OpenGLContext Class Reference

Public Member Functions

 OpenGLContext ()
 
 OpenGLContext (HWND hwnd, HDC hdc, HGLRC hglrc)
 
 ~OpenGLContext ()
 
void set (HWND hwnd, HDC hdc, HGLRC hglrc)
 
void clear ()
 
HDC deviceContext ()
 
bool makeCurrent (HDC restoreOnHdc, bool restorePreviousOnExit)
 

Protected Attributes

HDC _previousHdc
 
HGLRC _previousHglrc
 
HWND _hwnd
 
HDC _hdc
 
HGLRC _hglrc
 
bool _restorePreviousOnExit
 

Constructor & Destructor Documentation

◆ OpenGLContext() [1/2]

osgViewer::WGL::OpenGLContext::OpenGLContext ( )

◆ OpenGLContext() [2/2]

osgViewer::WGL::OpenGLContext::OpenGLContext ( HWND  hwnd,
HDC  hdc,
HGLRC  hglrc 
)

◆ ~OpenGLContext()

osgViewer::WGL::OpenGLContext::~OpenGLContext ( )

Member Function Documentation

◆ clear()

void osgViewer::WGL::OpenGLContext::clear ( )

◆ deviceContext()

HDC osgViewer::WGL::OpenGLContext::deviceContext ( )

◆ makeCurrent()

bool osgViewer::WGL::OpenGLContext::makeCurrent ( HDC  restoreOnHdc,
bool  restorePreviousOnExit 
)

◆ set()

void osgViewer::WGL::OpenGLContext::set ( HWND  hwnd,
HDC  hdc,
HGLRC  hglrc 
)

Member Data Documentation

◆ _hdc

HDC osgViewer::WGL::OpenGLContext::_hdc
protected

◆ _hglrc

HGLRC osgViewer::WGL::OpenGLContext::_hglrc
protected

◆ _hwnd

HWND osgViewer::WGL::OpenGLContext::_hwnd
protected

◆ _previousHdc

HDC osgViewer::WGL::OpenGLContext::_previousHdc
protected

◆ _previousHglrc

HGLRC osgViewer::WGL::OpenGLContext::_previousHglrc
protected

◆ _restorePreviousOnExit

bool osgViewer::WGL::OpenGLContext::_restorePreviousOnExit
protected

The documentation for this class was generated from the following file: