|
opensurgsim
|
Specific implementation of the render target class. More...
#include <OsgRenderTarget.h>
Public Types | |
| typedef T | TextureType |
| The internal type of the texture, not exposed in the public interface. | |
Public Member Functions | |
| OsgRenderTarget () | |
| Default constructor. | |
| OsgRenderTarget (int width, int height, double scale=1.0, int colorCount=0, bool useDepth=false, bool useFloat=false) | |
| Constructor set all the parameters for the render target. More... | |
| ~OsgRenderTarget () | |
| Destructor. | |
| void | getSize (int *width, int *height) const override |
| Gets a size. More... | |
| int | getColorTargetCount () const override |
| std::shared_ptr< Texture > | getColorTarget (int index) const override |
| Generic accessor for a specific color target texture. More... | |
| std::shared_ptr< OsgTexture > | getColorTargetOsg (int index) const |
| Accessor for the color target as an OsgTexture. More... | |
| bool | doesUseDepthTarget () const override |
| Determines if RenderTarget does use a depth target. More... | |
| std::shared_ptr< Texture > | getDepthTarget () const override |
| Generic accessor for the depth Target. More... | |
| std::shared_ptr< OsgTexture > | getDepthTargetOsg () const |
| Accessor for the depth target as an OsgTexture. More... | |
Public Member Functions inherited from SurgSim::Graphics::RenderTarget | |
| RenderTarget () | |
| Constructor. | |
Specific implementation of the render target class.
It is templated so different texture formats can be chosen.
| T | Type of the texture that should be used as targets probably either OsgTexture2d or OsgTextureRectangle. |
| SurgSim::Graphics::OsgRenderTarget< T >::OsgRenderTarget | ( | int | width, |
| int | height, | ||
| double | scale = 1.0, |
||
| int | colorCount = 0, |
||
| bool | useDepth = false, |
||
| bool | useFloat = false |
||
| ) |
Constructor set all the parameters for the render target.
| width,height | The width and height of the target textures. |
| scale | (Optional) the scale, scales width and height by this factor. |
| colorCount | (Optional) number of color textures to use. |
| useDepth | (Optional) whether to use a depth texture. |
| useFloat | (Optional) whether to use float color buffers |
|
overridevirtual |
Determines if RenderTarget does use a depth target.
Implements SurgSim::Graphics::RenderTarget.
|
overridevirtual |
Generic accessor for a specific color target texture.
| index | Zero-based index of the texture. |
Implements SurgSim::Graphics::RenderTarget.
|
overridevirtual |
Implements SurgSim::Graphics::RenderTarget.
|
virtual |
Accessor for the color target as an OsgTexture.
| index | Zero-based index of the color texture. |
Implements SurgSim::Graphics::OsgAbstractRenderTarget.
|
overridevirtual |
Generic accessor for the depth Target.
Implements SurgSim::Graphics::RenderTarget.
|
virtual |
Accessor for the depth target as an OsgTexture.
Implements SurgSim::Graphics::OsgAbstractRenderTarget.
|
overridevirtual |
Gets a size.
| [out] | width,height | The width and height of the RenderTarget textures. |
Implements SurgSim::Graphics::RenderTarget.
1.8.12