Go to the documentation of this file.
17 #ifndef _DYNAMICRENDERABLE_HH_
18 #define _DYNAMICRENDERABLE_HH_
62 public:
virtual Ogre::Real getBoundingRadius()
const;
68 public:
virtual Ogre::Real getSquaredViewDepth(
69 const Ogre::Camera *_cam)
const;
73 public: std::string GetMovableType()
const;
78 protected:
virtual void CreateVertexDeclaration() = 0;
93 protected:
void PrepareHardwareBuffers(
size_t _vertexCount,
102 protected:
virtual void FillHardwareBuffers() = 0;
virtual void FillHardwareBuffers()=0
Fills the hardware vertex and index buffers with data.
size_t indexBufferCapacity
Maximum capacity of the currently allocated index buffer.
Definition: DynamicRenderable.hh:108
RenderOpType GetOperationType() const
Get the render operation type.
void PrepareHardwareBuffers(size_t _vertexCount, size_t _indexCount)
Prepares the hardware buffers for the requested vertex and index counts.
Forward declarations for the common classes.
Definition: Animation.hh:26
virtual void CreateVertexDeclaration()=0
Creates the vertex declaration.
void SetOperationType(RenderOpType _opType)
Set the render operation type.
Abstract base class providing mechanisms for dynamically growing hardware buffers.
Definition: DynamicRenderable.hh:35
virtual Ogre::Real getBoundingRadius() const
Implementation of Ogre::SimpleRenderable.
void Init(RenderOpType _opType, bool _useIndices=false)
Initializes the dynamic renderable.
DynamicRenderable()
Constructor.
RenderOpType
Type of render operation for a drawable.
Definition: RenderTypes.hh:216
rendering
Definition: RenderEngine.hh:31
virtual ~DynamicRenderable()
Virtual destructor.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
virtual Ogre::Real getSquaredViewDepth(const Ogre::Camera *_cam) const
Implementation of Ogre::SimpleRenderable.
std::string GetMovableType() const
Get type of movable.
size_t vertexBufferCapacity
Maximum capacity of the currently allocated vertex buffer.
Definition: DynamicRenderable.hh:105