|
OpenMW
|
#include <BtOgreExtras.h>
Public Member Functions | |
| DynamicRenderable () | |
| Constructor. | |
| virtual | ~DynamicRenderable () |
| Virtual destructor. | |
| void | initialize (Ogre::RenderOperation::OperationType operationType, bool useIndices) |
| 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 |
| void | prepareHardwareBuffers (size_t vertexCount, size_t indexCount) |
| virtual void | fillHardwareBuffers ()=0 |
Protected Attributes | |
| size_t | mVertexBufferCapacity |
| Maximum capacity of the currently allocated vertex buffer. | |
| size_t | mIndexBufferCapacity |
| Maximum capacity of the currently allocated index buffer. | |
Constructor.
| BtOgre::DynamicRenderable::~DynamicRenderable | ( | ) | [virtual] |
Virtual destructor.
| virtual void BtOgre::DynamicRenderable::createVertexDeclaration | ( | ) | [protected, pure virtual] |
Creates the vertex declaration.
Implemented in BtOgre::DynamicLines.
| virtual void BtOgre::DynamicRenderable::fillHardwareBuffers | ( | ) | [protected, pure virtual] |
Fills the hardware vertex and index buffers with data.
Implemented in BtOgre::DynamicLines.
| Real BtOgre::DynamicRenderable::getBoundingRadius | ( | void | ) | const [virtual] |
Implementation of Ogre::SimpleRenderable.
| Real BtOgre::DynamicRenderable::getSquaredViewDepth | ( | const Ogre::Camera * | cam | ) | const [virtual] |
Implementation of Ogre::SimpleRenderable.
| void BtOgre::DynamicRenderable::initialize | ( | Ogre::RenderOperation::OperationType | operationType, |
| bool | useIndices | ||
| ) |
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 BtOgre::DynamicRenderable::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. |
size_t BtOgre::DynamicRenderable::mIndexBufferCapacity [protected] |
Maximum capacity of the currently allocated index buffer.
size_t BtOgre::DynamicRenderable::mVertexBufferCapacity [protected] |
Maximum capacity of the currently allocated vertex buffer.
1.7.6.1