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:

## 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< Texture > | getColorTarget (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< Texture > | getDepthTarget () 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

## getColorTargetOsg()

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

private pure virtual

Accessor for the color target as an OsgTexture.

Parameters

  index | Zero-based index of the color texture.

Returns
  The color target as an osg specific class.

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

## getDepthTargetOsg()

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

private pure 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:

- SurgSim/Graphics/OsgRenderTarget.h