OpenSceneGraph  3.0.1
Public Member Functions | Protected Attributes
osgViewer::GraphicsHandleWin32 Class Reference

Class to encapsulate platform-specific OpenGL context handle variables. More...

Inheritance diagram for osgViewer::GraphicsHandleWin32:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GraphicsHandleWin32 ()
void setHWND (HWND hwnd)
 Set native window.
HWND getHWND () const
 Get native window.
void setHDC (HDC hdc)
 Set device context.
HDC getHDC () const
 Get device context.
void setWGLContext (HGLRC hglrc)
 Set native OpenGL graphics context.
HGLRC getWGLContext () const
 Get native OpenGL graphics context.

Protected Attributes

HWND _hwnd
HDC _hdc
HGLRC _hglrc

Detailed Description

Class to encapsulate platform-specific OpenGL context handle variables.

Derived osg::GraphicsContext classes can inherit from this class to share OpenGL resources.


Constructor & Destructor Documentation

osgViewer::GraphicsHandleWin32::GraphicsHandleWin32 ( ) [inline]

Member Function Documentation

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.


Member Data Documentation


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

osg logo
Generated at Mon Oct 3 2011 12:39:51 for the OpenSceneGraph by doxygen 1.7.5.