28#ifndef __VertexIndexData_H__
29#define __VertexIndexData_H__
Base definition of a hardware buffer manager.
Shared pointer implementation used to share index buffers.
Shared pointer implementation used to share vertex buffers.
IndexData(const IndexData &rhs)
Protected copy constructor, to prevent misuse.
void optimiseVertexCacheTriList(void)
Re-order the indexes in this index data structure to be more vertex cache friendly; that is to re-use...
HardwareIndexBufferSharedPtr indexBuffer
Pointer to the HardwareIndexBuffer to use, must be specified if useIndexes = true.
IndexData & operator=(const IndexData &rhs)
Protected operator=, to prevent misuse.
size_t indexStart
Index in the buffer to start from for this operation.
IndexData * clone(bool copyData=true, HardwareBufferManagerBase *mgr=0) const
Clones this index data, potentially including replicating the index buffer.
size_t indexCount
The number of indexes to use from the buffer.
Records the state of all the vertex buffer bindings required to provide a vertex declaration with the...
bool inCache(unsigned int index)
void profile(const HardwareIndexBufferSharedPtr &indexBuffer)
VertexCacheProfiler(unsigned int cachesize=16)
VertexData & operator=(const VertexData &rhs)
Protected operator=, to prevent misuse.
size_t vertexCount
The number of vertices used in this operation.
void convertPackedColour(VertexElementType srcType, VertexElementType destType)
Convert all packed colour values (VET_COLOUR_*) in buffers used to another type.
void reorganiseBuffers(VertexDeclaration *newDeclaration, const BufferUsageList &bufferUsage, HardwareBufferManagerBase *mgr=0)
Reorganises the data in the vertex buffers according to the new vertex declaration passed in.
HardwareVertexBufferSharedPtr hardwareShadowVolWBuffer
Additional shadow volume vertex buffer storage.
void closeGapsInBindings(void)
Remove any gaps in the vertex buffer bindings.
VertexBufferBinding * vertexBufferBinding
The vertex buffer bindings to be used.
VertexData(HardwareBufferManagerBase *mgr=0)
Constructor.
void prepareForShadowVolume(void)
Modifies the vertex data to be suitable for use for rendering shadow geometry.
HardwareAnimationDataList hwAnimationDataList
VertexElements used for hardware morph / pose animation.
bool mDeleteDclBinding
Whether this class should delete the declaration and binding.
HardwareBufferManagerBase * mMgr
VertexData(VertexDeclaration *dcl, VertexBufferBinding *bind)
Constructor.
VertexData * clone(bool copyData=true, HardwareBufferManagerBase *mgr=0) const
Clones this vertex data, potentially including replicating any vertex buffers.
vector< HardwareAnimationData >::type HardwareAnimationDataList
void removeUnusedBuffers(void)
Remove all vertex buffers that never used by the vertex declaration.
size_t vertexStart
The base vertex index to start from.
VertexDeclaration * vertexDeclaration
Declaration of the vertex to be used in this operation.
VertexData(const VertexData &rhs)
Protected copy constructor, to prevent misuse.
void reorganiseBuffers(VertexDeclaration *newDeclaration, HardwareBufferManagerBase *mgr=0)
Reorganises the data in the vertex buffers according to the new vertex declaration passed in.
ushort allocateHardwareAnimationElements(ushort count, bool animateNormals)
Allocate elements to serve a holder of morph / pose target data for hardware morphing / pose blending...
size_t hwAnimDataItemsUsed
Number of hardware animation data items used.
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...
#define OGRE_ALLOC_T(T, count, category)
Allocate a block of memory for a primitive type, and indicate the category of usage.
#define OGRE_FREE(ptr, category)
Free the memory allocated with OGRE_MALLOC or OGRE_ALLOC_T. Category is required to be restated to en...
@ MEMCATEGORY_GEOMETRY
Geometry held in main memory.
VertexElementType
Vertex element type, used to identify the base types of the vertex contents.
vector< HardwareBuffer::Usage >::type BufferUsageList
Define a list of usage flags.
GeometryAllocatedObject IndexDataAlloc
RenderSysAllocatedObject BufferAlloc
float Real
Software floating point type.
GeometryAllocatedObject VertexDataAlloc
Struct used to hold hardware morph / pose vertex data information.
unsigned short targetBufferIndex