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

#include <GraphicsHandleX11>

Inheritance diagram for osgViewer::GraphicsHandleX11:
osgViewer::GraphicsWindowX11 osgViewer::PixelBufferX11

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
 

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

◆ Context

◆ Pbuffer

Constructor & Destructor Documentation

◆ GraphicsHandleX11()

osgViewer::GraphicsHandleX11::GraphicsHandleX11 ( )
inline

Member Function Documentation

◆ getContext()

Context osgViewer::GraphicsHandleX11::getContext ( ) const
inline

Get native OpenGL graphics context.

◆ getDisplay()

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

Get X11 display.

◆ setContext()

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

Set native OpenGL graphics context.

◆ setDisplay()

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

Set X11 display.

Member Data Documentation

◆ _context

Context osgViewer::GraphicsHandleX11::_context
protected

◆ _display

Display* osgViewer::GraphicsHandleX11::_display
protected

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