28 #ifndef __VertexIndexData_H__
29 #define __VertexIndexData_H__
131 void prepareForShadowVolume(
void);
167 void reorganiseBuffers(
VertexDeclaration* newDeclaration,
const BufferUsageList& bufferUsage,
198 void closeGapsInBindings(
void);
208 void removeUnusedBuffers(
void);
235 ushort allocateHardwareAnimationElements(
ushort count,
bool animateNormals);
276 void optimiseVertexCacheTriList(
void);
293 : size ( cachesize ), tail (0), buffersize (0), hit (0), miss (0)
304 void reset() { hit = 0; miss = 0; tail = 0; buffersize = 0; }
305 void flush() { tail = 0; buffersize = 0; }
317 bool inCache(
unsigned int index);
HardwareIndexBufferSharedPtr indexBuffer
Pointer to the HardwareIndexBuffer to use, must be specified if useIndexes = true.
size_t vertexCount
The number of vertices used in this operation.
VertexElementType
Vertex element type, used to identify the base types of the vertex contents.
Shared pointer implementation used to share index buffers.
HardwareAnimationDataList hwAnimationDataList
VertexElements used for hardware morph / pose animation.
Summary class collecting together vertex source information.
float Real
Software floating point type.
Summary class collecting together index data source information.
#define OGRE_ALLOC_T(T, count, category)
Allocate a block of memory for a primitive type, and indicate the category of usage.
vector< HardwareBuffer::Usage >::type BufferUsageList
Define a list of usage flags.
unsigned short targetBufferIndex
vector< HardwareAnimationData >::type HardwareAnimationDataList
VertexCacheProfiler(unsigned int cachesize=16, CacheType cachetype=FIFO)
Struct used to hold hardware morph / pose vertex data information.
VertexDeclaration * vertexDeclaration
Declaration of the vertex to be used in this operation.
Geometry held in main memory.
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...
Shared pointer implementation used to share vertex buffers.
size_t hwAnimDataItemsUsed
Number of hardware animation data items used.
Base definition of a hardware buffer manager.
VertexBufferBinding * vertexBufferBinding
The vertex buffer bindings to be used.
#define OGRE_FREE(ptr, category)
Free the memory allocated with OGRE_MALLOC or OGRE_ALLOC_T. Category is required to be restated to en...
Records the state of all the vertex buffer bindings required to provide a vertex declaration with the...
HardwareVertexBufferSharedPtr hardwareShadowVolWBuffer
Additional shadow volume vertex buffer storage.
bool mDeleteDclBinding
Whether this class should delete the declaration and binding.
size_t indexStart
Index in the buffer to start from for this operation.
size_t indexCount
The number of indexes to use from the buffer.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
HardwareBufferManagerBase * mMgr
size_t vertexStart
The base vertex index to start from.