17#ifndef _DYNAMICRENDERABLE_HH_
18#define _DYNAMICRENDERABLE_HH_
69 const Ogre::Camera *_cam)
const;
rendering
Definition RenderEngine.hh:31
Abstract base class providing mechanisms for dynamically growing hardware buffers.
Definition DynamicRenderable.hh:36
virtual Ogre::Real getSquaredViewDepth(const Ogre::Camera *_cam) const
Implementation of Ogre::SimpleRenderable.
virtual ~DynamicRenderable()
Virtual destructor.
DynamicRenderable()
Constructor.
size_t indexBufferCapacity
Maximum capacity of the currently allocated index buffer.
Definition DynamicRenderable.hh:108
std::string GetMovableType() const
Get type of movable.
void SetOperationType(RenderOpType _opType)
Set the render operation type.
virtual void CreateVertexDeclaration()=0
Creates the vertex declaration.
RenderOpType GetOperationType() const
Get the render operation type.
virtual void FillHardwareBuffers()=0
Fills the hardware vertex and index buffers with data.
void Init(RenderOpType _opType, bool _useIndices=false)
Initializes the dynamic renderable.
virtual Ogre::Real getBoundingRadius() const
Implementation of Ogre::SimpleRenderable.
size_t vertexBufferCapacity
Maximum capacity of the currently allocated vertex buffer.
Definition DynamicRenderable.hh:105
void PrepareHardwareBuffers(size_t _vertexCount, size_t _indexCount)
Prepares the hardware buffers for the requested vertex and index counts.
RenderOpType
Type of render operation for a drawable.
Definition RenderTypes.hh:217
Forward declarations for the common classes.
Definition Animation.hh:27