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

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

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

Public Member Functions

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

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

◆ GraphicsHandleWin32()

osgViewer::GraphicsHandleWin32::GraphicsHandleWin32 ( )
inline

Member Function Documentation

◆ getHDC()

HDC osgViewer::GraphicsHandleWin32::getHDC ( ) const
inline

Get device context.

◆ getHWND()

HWND osgViewer::GraphicsHandleWin32::getHWND ( ) const
inline

Get native window.

◆ getWGLContext()

HGLRC osgViewer::GraphicsHandleWin32::getWGLContext ( ) const
inline

Get native OpenGL graphics context.

◆ setHDC()

void osgViewer::GraphicsHandleWin32::setHDC ( HDC  hdc)
inline

Set device context.

◆ setHWND()

void osgViewer::GraphicsHandleWin32::setHWND ( HWND  hwnd)
inline

Set native window.

◆ setWGLContext()

void osgViewer::GraphicsHandleWin32::setWGLContext ( HGLRC  hglrc)
inline

Set native OpenGL graphics context.

Member Data Documentation

◆ _hdc

HDC osgViewer::GraphicsHandleWin32::_hdc
protected

◆ _hglrc

HGLRC osgViewer::GraphicsHandleWin32::_hglrc
protected

◆ _hwnd

HWND osgViewer::GraphicsHandleWin32::_hwnd
protected

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