Public Member Functions | |
GraphicsContextImplementation (Traits *traits) | |
Construct a graphics context to specified traits. | |
GraphicsContextImplementation (Producer::RenderSurface *rs) | |
Construct a graphics context with specified RenderSurface. | |
Producer::RenderSurface * | getRenderSurface () |
Return the RenderSurface that implements the graphics context. | |
const Producer::RenderSurface * | getRenderSurface () const |
Return the const RenderSurface that implements the graphics context. | |
virtual bool | realizeImplementation () |
Realise 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 void | makeCurrentImplementation () |
Make this graphics context current. | |
virtual void | makeContextCurrentImplementation (osg::GraphicsContext *readContext) |
Make this graphics context current with specified read context. | |
virtual void | bindPBufferToTextureImplementation (GLenum buffer) |
Bind the graphics context to associated texture. | |
virtual void | swapBuffersImplementation () |
swap the front and back buffers. | |
Protected Member Functions | |
virtual | ~GraphicsContextImplementation () |
Protected Attributes | |
bool | _closeOnDestruction |
osg::ref_ptr< Producer::RenderSurface > | _rs |
|
Construct a graphics context to specified traits.
|
|
Construct a graphics context with specified RenderSurface.
|
|
|
|
Bind the graphics context to associated texture.
Implements osg::GraphicsContext. |
|
Close the graphics context.
Implements osg::GraphicsContext. |
|
Return the const RenderSurface that implements the graphics context.
|
|
Return the RenderSurface that implements the graphics context.
|
|
Return true if the graphics context has been realised and is ready to use.
Implements osg::GraphicsContext. |
|
Make this graphics context current with specified read context.
Implements osg::GraphicsContext. |
|
Make this graphics context current.
Implements osg::GraphicsContext. |
|
Realise the GraphicsContext.
Implements osg::GraphicsContext. |
|
swap the front and back buffers.
Implements osg::GraphicsContext. |
|
|
|
|