OpenSceneGraph  3.5.1
Public Types | Public Member Functions | Protected Attributes | List of all members
osgViewer::GraphicsHandleX11 Class Reference

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

Inheritance diagram for osgViewer::GraphicsHandleX11:
Inheritance graph

Public Types

typedef GLXContext Context
typedef GLXPbuffer Pbuffer

Public Member Functions

 GraphicsHandleX11 ()
void setDisplay (Display *display)
 Set X11 display. More...
Display * getDisplay () const
 Get X11 display. More...
void setContext (Context context)
 Set native OpenGL graphics context. More...
Context getContext () const
 Get native OpenGL graphics context. More...

Protected Attributes

Display * _display
Context _context

Detailed Description

Class to encapsulate platform-specific OpenGL context handle variables.

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

Member Typedef Documentation

Constructor & Destructor Documentation

osgViewer::GraphicsHandleX11::GraphicsHandleX11 ( )

Member Function Documentation

Context osgViewer::GraphicsHandleX11::getContext ( ) const

Get native OpenGL graphics context.

Display* osgViewer::GraphicsHandleX11::getDisplay ( ) const

Get X11 display.

void osgViewer::GraphicsHandleX11::setContext ( Context  context)

Set native OpenGL graphics context.

void osgViewer::GraphicsHandleX11::setDisplay ( Display *  display)

Set X11 display.

Member Data Documentation

Context osgViewer::GraphicsHandleX11::_context
Display* osgViewer::GraphicsHandleX11::_display

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

osg logo
Generated at Wed Nov 11 2015 22:15:20 for the OpenSceneGraph by doxygen 1.8.10.