openscenegraph
|
Public Types | |
typedef GLXContext | Context |
typedef GLXPbuffer | Pbuffer |
Public Member Functions | |
GraphicsHandleX11 () | |
void | setDisplay (Display *display) |
Display * | getDisplay () const |
void | setContext (Context context) |
Context | getContext () const |
Protected Attributes | |
Display * | _display |
Context | _context |
Class to encapsulate platform-specific OpenGL context handle variables. Derived osg::GraphicsContext classes can inherit from this class to share OpenGL resources.
typedef GLXContext osgViewer::GraphicsHandleX11::Context |
osgViewer::GraphicsHandleX11::GraphicsHandleX11 | ( | ) | [inline] |
Context osgViewer::GraphicsHandleX11::getContext | ( | ) | const [inline] |
Get native OpenGL graphics context.
Display* osgViewer::GraphicsHandleX11::getDisplay | ( | ) | const [inline] |
Get X11 display.
void osgViewer::GraphicsHandleX11::setContext | ( | Context | context | ) | [inline] |
Set native OpenGL graphics context.
void osgViewer::GraphicsHandleX11::setDisplay | ( | Display * | display | ) | [inline] |
Set X11 display.
Context osgViewer::GraphicsHandleX11::_context [protected] |
Display* osgViewer::GraphicsHandleX11::_display [protected] |