Public Member Functions | Protected Member Functions | Protected Attributes

osgViewer::PixelBufferX11 Class Reference

Inheritance diagram for osgViewer::PixelBufferX11:
osg::GraphicsContext osg::Object osg::Referenced

List of all members.

Public Member Functions

 PixelBufferX11 (osg::GraphicsContext::Traits *traits)
virtual bool isSameKindAs (const Object *object) const
virtual const char * libraryName () const
virtual const char * className () const
virtual bool valid () const
virtual bool realizeImplementation ()
virtual bool isRealizedImplementation () const
virtual void closeImplementation ()
virtual bool makeCurrentImplementation ()
virtual bool makeContextCurrentImplementation (osg::GraphicsContext *readContext)
virtual bool releaseContextImplementation ()
virtual void bindPBufferToTextureImplementation (GLenum buffer)
virtual void swapBuffersImplementation ()
Display * getDisplay () const
GLXPbuffergetPbuffer ()
GLXContext & getGLXContext ()

Protected Member Functions

 ~PixelBufferX11 ()
bool createVisualInfo ()
void init ()

Protected Attributes

bool _valid
Display * _display
GLXPbuffer _pbuffer
XVisualInfo * _visualInfo
GLXContext _glxContext
bool _initialized
bool _realized
bool _useGLX1_3

Constructor & Destructor Documentation

osgViewer::PixelBufferX11::PixelBufferX11 ( osg::GraphicsContext::Traits traits  ) 
osgViewer::PixelBufferX11::~PixelBufferX11 (  )  [protected]

Member Function Documentation

virtual void osgViewer::PixelBufferX11::bindPBufferToTextureImplementation ( GLenum  buffer  )  [virtual]

Bind the graphics context to associated texture implementation.

Implements osg::GraphicsContext.

virtual const char* osgViewer::PixelBufferX11::className (  )  const [inline, virtual]

return the name of the object's class type. Must be defined by derived classes.

Reimplemented from osg::GraphicsContext.

virtual void osgViewer::PixelBufferX11::closeImplementation (  )  [virtual]

Close the graphics context.

Implements osg::GraphicsContext.

bool osgViewer::PixelBufferX11::createVisualInfo (  )  [protected]
Display* osgViewer::PixelBufferX11::getDisplay (  )  const [inline]
GLXContext& osgViewer::PixelBufferX11::getGLXContext (  )  [inline]
GLXPbuffer& osgViewer::PixelBufferX11::getPbuffer (  )  [inline]
void osgViewer::PixelBufferX11::init (  )  [protected]
virtual bool osgViewer::PixelBufferX11::isRealizedImplementation (  )  const [inline, virtual]

Return true if the graphics context has been realised and is ready to use.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::isSameKindAs ( const Object *  object  )  const [inline, virtual]
virtual const char* osgViewer::PixelBufferX11::libraryName (  )  const [inline, virtual]

return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Reimplemented from osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::makeContextCurrentImplementation ( osg::GraphicsContext readContext  )  [virtual]

Make this graphics context current with specified read context implementation.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::makeCurrentImplementation (  )  [virtual]

Make this graphics context current.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::realizeImplementation (  )  [virtual]

Realise the GraphicsContext.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::releaseContextImplementation (  )  [virtual]

Release the graphics context.

Implements osg::GraphicsContext.

virtual void osgViewer::PixelBufferX11::swapBuffersImplementation (  )  [virtual]

Swap the front and back buffers.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::valid (  )  const [inline, virtual]

Return whether a valid and usable GraphicsContext has been created.

Implements osg::GraphicsContext.


Member Data Documentation

XVisualInfo* osgViewer::PixelBufferX11::_visualInfo [protected]

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