osgViewer::PixelBufferWin32 Class Reference

Inheritance diagram for osgViewer::PixelBufferWin32:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 PixelBufferWin32 (osg::GraphicsContext::Traits *traits)
virtual ~PixelBufferWin32 ()
virtual bool isSameKindAs (const Object *object) const
virtual const char * libraryName () const
 return the name of the object's library.
virtual const char * className () const
 return the name of the object's class type.
virtual bool valid () const
 Return whether a valid and usable GraphicsContext has been created.
virtual bool realizeImplementation ()
 Realize the GraphicsContext.
virtual bool isRealizedImplementation () const
 Return true if the graphics context has been realised and is ready to use.
virtual void closeImplementation ()
 Close the graphics context.
virtual bool makeCurrentImplementation ()
 Make this graphics context current.
virtual bool makeContextCurrentImplementation (GraphicsContext *)
virtual bool releaseContextImplementation ()
 Release the graphics context.
virtual void swapBuffersImplementation ()
 Swap the front and back buffers.
HWND getHWND () const
 Get native window.
HDC getHDC () const
HGLRC getWGLContext () const
 Get native OpenGL graphics context.
virtual void bindPBufferToTextureImplementation (GLenum)
 Pure virtual, Bind the graphics context to associated texture implementation.

Protected Member Functions

void init ()

Protected Attributes

HWND _hwnd
HDC _hdc
HGLRC _hglrc
bool _initialized
bool _valid
bool _realized


Constructor & Destructor Documentation

osgViewer::PixelBufferWin32::PixelBufferWin32 ( osg::GraphicsContext::Traits traits  ) 

virtual osgViewer::PixelBufferWin32::~PixelBufferWin32 (  )  [virtual]


Member Function Documentation

virtual bool osgViewer::PixelBufferWin32::isSameKindAs ( const Object *  object  )  const [inline, virtual]

virtual const char* osgViewer::PixelBufferWin32::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 const char* osgViewer::PixelBufferWin32::className (  )  const [inline, virtual]

return the name of the object's class type.

Must be defined by derived classes.

Reimplemented from osg::GraphicsContext.

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

Return whether a valid and usable GraphicsContext has been created.

Implements osg::GraphicsContext.

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

Realize the GraphicsContext.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferWin32::isRealizedImplementation (  )  const [inline, virtual]

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

Implements osg::GraphicsContext.

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

Close the graphics context.

Implements osg::GraphicsContext.

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

Make this graphics context current.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferWin32::makeContextCurrentImplementation ( GraphicsContext *   )  [virtual]

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

Release the graphics context.

Implements osg::GraphicsContext.

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

Swap the front and back buffers.

Implements osg::GraphicsContext.

HWND osgViewer::PixelBufferWin32::getHWND (  )  const [inline]

Get native window.

HDC osgViewer::PixelBufferWin32::getHDC (  )  const [inline]

HGLRC osgViewer::PixelBufferWin32::getWGLContext (  )  const [inline]

Get native OpenGL graphics context.

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

Pure virtual, Bind the graphics context to associated texture implementation.

Pure virtual - must be implemented by concrate implementations of GraphicsContext.

Implements osg::GraphicsContext.

void osgViewer::PixelBufferWin32::init (  )  [protected]


Member Data Documentation

HWND osgViewer::PixelBufferWin32::_hwnd [protected]

HDC osgViewer::PixelBufferWin32::_hdc [protected]

HGLRC osgViewer::PixelBufferWin32::_hglrc [protected]

bool osgViewer::PixelBufferWin32::_initialized [protected]

bool osgViewer::PixelBufferWin32::_valid [protected]

bool osgViewer::PixelBufferWin32::_realized [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:53 2007 for the OpenSceneGraph by doxygen 1.5.3.