#include <OgreVertexIndexData.h>
Public Types | |
typedef std::vector < HardwareAnimationData > | HardwareAnimationDataList |
Public Member Functions | |
VertexData () | |
~VertexData () | |
VertexData * | clone (bool copyData=true) const |
Clones this vertex data, potentially including replicating any vertex buffers. | |
void | prepareForShadowVolume (void) |
Modifies the vertex data to be suitable for use for rendering shadow geometry. | |
void | reorganiseBuffers (VertexDeclaration *newDeclaration, const BufferUsageList &bufferUsage) |
Reorganises the data in the vertex buffers according to the new vertex declaration passed in. | |
void | reorganiseBuffers (VertexDeclaration *newDeclaration) |
Reorganises the data in the vertex buffers according to the new vertex declaration passed in. | |
void | closeGapsInBindings (void) |
Remove any gaps in the vertex buffer bindings. | |
void | removeUnusedBuffers (void) |
Remove all vertex buffers that never used by the vertex declaration. | |
void | convertPackedColour (VertexElementType srcType, VertexElementType destType) |
Convert all packed colour values (VET_COLOUR_*) in buffers used to another type. | |
void | allocateHardwareAnimationElements (ushort count) |
Allocate elements to serve a holder of morph / pose target data for hardware morphing / pose blending. | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Public Attributes | |
VertexDeclaration * | vertexDeclaration |
Declaration of the vertex to be used in this operation. | |
VertexBufferBinding * | vertexBufferBinding |
The vertex buffer bindings to be used. | |
size_t | vertexStart |
The base vertex index to start from. | |
size_t | vertexCount |
The number of vertices used in this operation. | |
HardwareAnimationDataList | hwAnimationDataList |
VertexElements used for hardware morph / pose animation. | |
size_t | hwAnimDataItemsUsed |
Number of hardware animation data items used. | |
HardwareVertexBufferSharedPtr | hardwareShadowVolWBuffer |
Additional shadow volume vertex buffer storage. | |
Private Member Functions | |
VertexData (const VertexData &rhs) | |
Protected copy constructor, to prevent misuse. | |
VertexData & | operator= (const VertexData &rhs) |
Protected operator=, to prevent misuse. | |
Classes | |
struct | HardwareAnimationData |
Struct used to hold hardware morph / pose vertex data information. More... |
Definition at line 43 of file OgreVertexIndexData.h.
typedef std::vector<HardwareAnimationData> Ogre::VertexData::HardwareAnimationDataList |
Definition at line 74 of file OgreVertexIndexData.h.
Ogre::VertexData::VertexData | ( | const VertexData & | rhs | ) | [private] |
Protected copy constructor, to prevent misuse.
Ogre::VertexData::VertexData | ( | ) |
Ogre::VertexData::~VertexData | ( | ) |
VertexData& Ogre::VertexData::operator= | ( | const VertexData & | rhs | ) | [private] |
Protected operator=, to prevent misuse.
VertexData* Ogre::VertexData::clone | ( | bool | copyData = true |
) | const |
Clones this vertex data, potentially including replicating any vertex buffers.
void Ogre::VertexData::prepareForShadowVolume | ( | void | ) |
Modifies the vertex data to be suitable for use for rendering shadow geometry.
void Ogre::VertexData::reorganiseBuffers | ( | VertexDeclaration * | newDeclaration, | |
const BufferUsageList & | bufferUsage | |||
) |
Reorganises the data in the vertex buffers according to the new vertex declaration passed in.
Note that new vertex buffers are created and written to, so if the buffers being referenced by this vertex data object are also used by others, then the original buffers will not be damaged by this operation. Once this operation has completed, the new declaration passed in will overwrite the current one.
newDeclaration | The vertex declaration which will be used for the reorganised buffer state. Note that the new declaration must not include any elements which do not already exist in the current declaration; you can drop elements by excluding them from the declaration if you wish, however. | |
bufferUsages | Vector of usage flags which indicate the usage options for each new vertex buffer created. The indexes of the entries must correspond to the buffer binding values referenced in the declaration. |
void Ogre::VertexData::reorganiseBuffers | ( | VertexDeclaration * | newDeclaration | ) |
Reorganises the data in the vertex buffers according to the new vertex declaration passed in.
Note that new vertex buffers are created and written to, so if the buffers being referenced by this vertex data object are also used by others, then the original buffers will not be damaged by this operation. Once this operation has completed, the new declaration passed in will overwrite the current one. This version of the method derives the buffer usages from the existing buffers, by using the 'most flexible' usage from the equivalent sources.
newDeclaration | The vertex declaration which will be used for the reorganised buffer state. Note that the new delcaration must not include any elements which do not already exist in the current declaration; you can drop elements by excluding them from the declaration if you wish, however. |
void Ogre::VertexData::closeGapsInBindings | ( | void | ) |
Remove any gaps in the vertex buffer bindings.
void Ogre::VertexData::removeUnusedBuffers | ( | void | ) |
Remove all vertex buffers that never used by the vertex declaration.
void Ogre::VertexData::convertPackedColour | ( | VertexElementType | srcType, | |
VertexElementType | destType | |||
) |
Convert all packed colour values (VET_COLOUR_*) in buffers used to another type.
srcType | The source colour type to assume if the ambiguous VET_COLOUR is encountered. | |
destType | The destination colour type, must be VET_COLOUR_ABGR or VET_COLOUR_ARGB. |
void Ogre::VertexData::allocateHardwareAnimationElements | ( | ushort | count | ) |
Allocate elements to serve a holder of morph / pose target data for hardware morphing / pose blending.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 84 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 89 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 106 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
Declaration of the vertex to be used in this operation.
Definition at line 57 of file OgreVertexIndexData.h.
The vertex buffer bindings to be used.
Definition at line 61 of file OgreVertexIndexData.h.
VertexElements used for hardware morph / pose animation.
Definition at line 76 of file OgreVertexIndexData.h.
Additional shadow volume vertex buffer storage.
Definition at line 119 of file OgreVertexIndexData.h.
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:08:24 2009