OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
osgViewer::GraphicsHandleWin32 Class Reference

#include <GraphicsHandleWin32.h>

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

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
 

Detailed Description

Class to encapsulate platform-specific OpenGL context handle variables. Derived osg::GraphicsContext classes can inherit from this class to share OpenGL resources.

Definition at line 31 of file GraphicsHandleWin32.h.

Constructor & Destructor Documentation

osgViewer::GraphicsHandleWin32::GraphicsHandleWin32 ( )
inline

Definition at line 35 of file GraphicsHandleWin32.h.

Member Function Documentation

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

Get device context.

Definition at line 50 of file GraphicsHandleWin32.h.

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

Get native window.

Definition at line 44 of file GraphicsHandleWin32.h.

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

Get native OpenGL graphics context.

Definition at line 56 of file GraphicsHandleWin32.h.

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

Set device context.

Definition at line 47 of file GraphicsHandleWin32.h.

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

Set native window.

Definition at line 41 of file GraphicsHandleWin32.h.

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

Set native OpenGL graphics context.

Definition at line 53 of file GraphicsHandleWin32.h.

Member Data Documentation

HDC osgViewer::GraphicsHandleWin32::_hdc
protected

Definition at line 61 of file GraphicsHandleWin32.h.

HGLRC osgViewer::GraphicsHandleWin32::_hglrc
protected

Definition at line 62 of file GraphicsHandleWin32.h.

HWND osgViewer::GraphicsHandleWin32::_hwnd
protected

Definition at line 60 of file GraphicsHandleWin32.h.


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