- gazebo
- rendering
- DynamicRenderable
Abstract base class providing mechanisms for dynamically growing hardware buffers. More...
#include <DynamicRenderable.hh>

Public Member Functions | |
| DynamicRenderable () | |
| Constructor. | |
| virtual | ~DynamicRenderable () |
| Virtual destructor. | |
| void | Init (RenderOpType operationType, bool useIndices=false) |
| Initializes the dynamic renderable. | |
| void | SetOperationType (RenderOpType opType) |
| Set the render operation type. | |
| RenderOpType | GetOperationType () const |
| Get the render operation type. | |
| virtual Ogre::Real | getBoundingRadius (void) const |
| Implementation of Ogre::SimpleRenderable. | |
| virtual Ogre::Real | getSquaredViewDepth (const Ogre::Camera *cam) const |
| Implementation of Ogre::SimpleRenderable. | |
Protected Member Functions | |
| virtual void | CreateVertexDeclaration ()=0 |
| Creates the vertex declaration. | |
| void | PrepareHardwareBuffers (size_t vertexCount, size_t indexCount) |
| Prepares the hardware buffers for the requested vertex and index counts. | |
| virtual void | FillHardwareBuffers ()=0 |
| Fills the hardware vertex and index buffers with data. | |
Protected Attributes | |
| size_t | vertexBufferCapacity |
| Maximum capacity of the currently allocated vertex buffer. | |
| size_t | indexBufferCapacity |
| Maximum capacity of the currently allocated index buffer. | |
Abstract base class providing mechanisms for dynamically growing hardware buffers.
| virtual void CreateVertexDeclaration | ( | ) | [protected, pure virtual] |
Creates the vertex declaration.
Implemented in DynamicLines.
| virtual void FillHardwareBuffers | ( | ) | [protected, pure virtual] |
Fills the hardware vertex and index buffers with data.
Implemented in DynamicLines.
| void Init | ( | RenderOpType | operationType, |
| bool | useIndices = false |
||
| ) |
Initializes the dynamic renderable.
| operationType | The type of render operation to perform. |
| useIndices | Specifies whether to use indices to determine the vertices to use as input. |
| void PrepareHardwareBuffers | ( | size_t | vertexCount, |
| size_t | indexCount | ||
| ) | [protected] |
Prepares the hardware buffers for the requested vertex and index counts.
| vertexCount | The number of vertices the buffer must hold. |
| indexCount | The number of indices the buffer must hold. This parameter is ignored if not using indices. |
1.7.5.1