All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Private Member Functions | List of all members
SurgSim::Graphics::OsgAbstractRenderTarget Class Referenceabstract

Osg abstract render target, this hides the type of the actual osg texture and lets us use OsgRenderTarget without the template type. More...

#include <SurgSim/Graphics/OsgRenderTarget.h>

Inheritance diagram for SurgSim::Graphics::OsgAbstractRenderTarget:
Inheritance graph
[legend]
Collaboration diagram for SurgSim::Graphics::OsgAbstractRenderTarget:
Collaboration graph
[legend]

Private Member Functions

virtual std::shared_ptr
< OsgTexture
getColorTargetOsg (int index) const =0
 Accessor for the color target as an OsgTexture. More...
 
virtual std::shared_ptr
< OsgTexture
getDepthTargetOsg () const =0
 Accessor for the depth target as an OsgTexture. More...
 

Additional Inherited Members

- Public Member Functions inherited from SurgSim::Graphics::RenderTarget
 RenderTarget ()
 Constructor. More...
 
virtual ~RenderTarget ()
 
virtual void getSize (int *width, int *height) const =0
 Gets a size. More...
 
virtual int getColorTargetCount () const =0
 Returns the number of textures that this RenderTarget uses to draw into. More...
 
virtual std::shared_ptr< TexturegetColorTarget (int index) const =0
 Gets the indicated texture that is used as a target. More...
 
virtual bool doesUseDepthTarget () const =0
 Check wether this draws into a depth texture. More...
 
virtual std::shared_ptr< TexturegetDepthTarget () const =0
 Returns the texture that is used for the depth map drawing. More...
 

Detailed Description

Osg abstract render target, this hides the type of the actual osg texture and lets us use OsgRenderTarget without the template type.

Member Function Documentation

virtual std::shared_ptr<OsgTexture> SurgSim::Graphics::OsgAbstractRenderTarget::getColorTargetOsg ( int  index) const
privatepure virtual

Accessor for the color target as an OsgTexture.

Parameters
indexZero-based index of the color texture.
Returns
The color target as an osg specific class.

Implemented in SurgSim::Graphics::OsgRenderTarget< T >.

virtual std::shared_ptr<OsgTexture> SurgSim::Graphics::OsgAbstractRenderTarget::getDepthTargetOsg ( ) const
privatepure virtual

Accessor for the depth target as an OsgTexture.

Returns
The depth target as an osg specific class.

Implemented in SurgSim::Graphics::OsgRenderTarget< T >.


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