opensurgsim
|
RenderTarget is an abstraction of the target buffers that a Camera should use to render it's scene valid targets are a given number of color buffers, and an optional depth buffer. More...
#include <RenderTarget.h>
Public Member Functions | |
RenderTarget () | |
Constructor. | |
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... | |
RenderTarget is an abstraction of the target buffers that a Camera should use to render it's scene valid targets are a given number of color buffers, and an optional depth buffer.
The buffers need to be made available as textures so they can be reused in another rendering step. The type of texture is not determined at this point and will depend on the concrete RenderTarget that is instantiated. The RenderTarget is considered immutable after construction.
|
pure virtual |
Check wether this draws into a depth texture.
Implemented in SurgSim::Graphics::OsgRenderTarget< T >.
|
pure virtual |
Gets the indicated texture that is used as a target.
index | Zero-based index of the texture to be used. |
Implemented in SurgSim::Graphics::OsgRenderTarget< T >.
|
pure virtual |
Returns the number of textures that this RenderTarget uses to draw into.
Implemented in SurgSim::Graphics::OsgRenderTarget< T >.
|
pure virtual |
Returns the texture that is used for the depth map drawing.
Implemented in SurgSim::Graphics::OsgRenderTarget< T >.
|
pure virtual |
Gets a size.
[out] | width,height | The width and height of the RenderTarget textures. |
Implemented in SurgSim::Graphics::OsgRenderTarget< T >.