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

#include <GraphicsHandleX11.h>

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

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.

Definition at line 44 of file GraphicsHandleX11.h.

Member Typedef Documentation

Definition at line 62 of file GraphicsHandleX11.h.

Definition at line 63 of file GraphicsHandleX11.h.

Constructor & Destructor Documentation

osgViewer::GraphicsHandleX11::GraphicsHandleX11 ( )
inline

Definition at line 48 of file GraphicsHandleX11.h.

Member Function Documentation

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

Get native OpenGL graphics context.

Definition at line 70 of file GraphicsHandleX11.h.

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

Get X11 display.

Definition at line 56 of file GraphicsHandleX11.h.

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

Set native OpenGL graphics context.

Definition at line 67 of file GraphicsHandleX11.h.

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

Set X11 display.

Definition at line 53 of file GraphicsHandleX11.h.

Member Data Documentation

Context osgViewer::GraphicsHandleX11::_context
protected

Definition at line 75 of file GraphicsHandleX11.h.

Display* osgViewer::GraphicsHandleX11::_display
protected

Definition at line 74 of file GraphicsHandleX11.h.


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