47 #ifndef _MIRA_DYNAMICRENDERABLE_H_ 48 #define _MIRA_DYNAMICRENDERABLE_H_ 53 #include <OGRE/OgreSimpleRenderable.h> 94 void initialize(Ogre::RenderOperation::OperationType operationType,
95 const Ogre::VertexDeclaration& vertexDecl,
bool useIndices);
98 void setOperationType(Ogre::RenderOperation::OperationType operationType);
107 void enableIndexBuffer(
bool enable=
true);
116 INDEX_BUFFER_32BIT = 1,
133 void prepareBuffers(
size_t vertexCount,
size_t indexCount=0,
135 Ogre::HardwareBuffer::Usage usage=Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY);
144 void updateVertexCount(
size_t vertexCount);
147 Ogre::HardwareVertexBufferSharedPtr getVertexBuffer(
unsigned short index = 0);
150 Ogre::HardwareIndexBufferSharedPtr getIndexBuffer();
156 virtual Ogre::Real getBoundingRadius(
void)
const;
158 virtual Ogre::Real getSquaredViewDepth(
const Ogre::Camera* cam)
const;
160 #if OGRE_VERSION < 0x11000 166 queue->addRenderable(
this, mRenderQueueID, mRenderQueuePriority);
virtual void _updateRenderQueue(Ogre::RenderQueue *queue)
Definition: DynamicRenderable.h:165
Macros for generating logical operators for using enum values as flags.
Flags
Flags that can be specified in prepareHardwareBuffers().
Definition: DynamicRenderable.h:113
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
size_t mIndexBufferCapacity
Maximum capacity of the currently allocated index buffer.
Definition: DynamicRenderable.h:174
Abstract base class for renderables based on dynamically growing vertex and index buffers...
Definition: DynamicRenderable.h:78
#define MIRA_ENUM_TO_FLAGS_INCLASS(EnumType)
Macro that can be used with enums that contain flags.
Definition: EnumToFlags.h:143
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
FrameworkVis export macro declaration.
size_t mVertexBufferCapacity
Maximum capacity of the currently allocated vertex buffer.
Definition: DynamicRenderable.h:172