openscenegraph
|
Public Member Functions | |
GraphicsHandleWin32 () | |
void | setHWND (HWND hwnd) |
HWND | getHWND () const |
void | setHDC (HDC hdc) |
HDC | getHDC () const |
void | setWGLContext (HGLRC hglrc) |
HGLRC | getWGLContext () const |
Protected Attributes | |
HWND | _hwnd |
HDC | _hdc |
HGLRC | _hglrc |
Class to encapsulate platform-specific OpenGL context handle variables. Derived osg::GraphicsContext classes can inherit from this class to share OpenGL resources.
osgViewer::GraphicsHandleWin32::GraphicsHandleWin32 | ( | ) | [inline] |
HDC osgViewer::GraphicsHandleWin32::getHDC | ( | ) | const [inline] |
Get device context.
HWND osgViewer::GraphicsHandleWin32::getHWND | ( | ) | const [inline] |
Get native window.
HGLRC osgViewer::GraphicsHandleWin32::getWGLContext | ( | ) | const [inline] |
Get native OpenGL graphics context.
void osgViewer::GraphicsHandleWin32::setHDC | ( | HDC | hdc | ) | [inline] |
Set device context.
void osgViewer::GraphicsHandleWin32::setHWND | ( | HWND | hwnd | ) | [inline] |
Set native window.
void osgViewer::GraphicsHandleWin32::setWGLContext | ( | HGLRC | hglrc | ) | [inline] |
Set native OpenGL graphics context.
HDC osgViewer::GraphicsHandleWin32::_hdc [protected] |
HGLRC osgViewer::GraphicsHandleWin32::_hglrc [protected] |
HWND osgViewer::GraphicsHandleWin32::_hwnd [protected] |