|
| | VertexData (HardwareBufferManagerBase *mgr) |
| | Constructor.
|
| | VertexData (VertexDeclaration *dcl, VertexBufferBinding *bind) |
| | Constructor.
|
| | ~VertexData () |
| HardwareBufferManagerBase * | _getHardwareBufferManager (void) const |
| ushort | allocateHardwareAnimationElements (ushort count, bool animateNormals) |
| | Allocate elements to serve a holder of morph / pose target data for hardware morphing / pose blending.
|
| VertexData * | clone (bool copyData=true, HardwareBufferManagerBase *mgr=0) const |
| | Clones this vertex data, potentially including replicating any vertex buffers.
|
| void | closeGapsInBindings (void) |
| | Remove any gaps in the vertex buffer bindings.
|
| void | convertPackedColour (VertexElementType srcType, VertexElementType destType) |
| | Convert all packed colour values (VET_COLOUR_*) in buffers used to another type.
|
| void | lockMultipleElements (ReadRequestsArray &requests, HardwareBuffer::LockOptions lockOptions) |
| | Utility to get multiple pointers & read specific elements of the vertex, even if they're in separate buffers.
|
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz) |
| 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 *ptr) |
| | placement operator new
|
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| | array operator new, with debug line info
|
| void | prepareForShadowVolume (void) |
| | Modifies the vertex data to be suitable for use for rendering shadow geometry.
|
| void | removeUnusedBuffers (void) |
| | Remove all vertex buffers that never used by the vertex declaration.
|
| 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.
|
| void | reorganiseBuffers (VertexDeclaration *newDeclaration, HardwareBufferManagerBase *mgr=0) |
| | Reorganises the data in the vertex buffers according to the new vertex declaration passed in.
|
| void | unlockMultipleElements (ReadRequestsArray &requests) |
Summary class collecting together vertex source information.
Utility to get multiple pointers & read specific elements of the vertex, even if they're in separate buffers.
When two elements share the same buffer, the buffer is locked once.
Example usage: VertexData::ReadRequestsArray requests; requests.push_back( VertexData::ReadRequests( VES_POSITION ) ); requests.push_back( VertexData::ReadRequests( VES_NORMALS ) ); vao->lockMultipleElements( requests );
for( size_t i=0; i<numVertices; ++i ) { float const position = reinterpret_cast<const float>( requests[0].data ); float const normals = reinterpret_cast<const float>( requests[1].data );
requests[0].data += requests[0].vertexBuffer->getVertexSize(); requests[1].data += requests[1].vertexBuffer->getVertexSize(); }
vao->unlockMultipleElements( requests );
- Parameters
-
| requests | [in/out] Array filled with the semantic. |
| void Ogre::v1::VertexData::reorganiseBuffers |
( |
VertexDeclaration * | newDeclaration, |
|
|
const BufferUsageList & | bufferUsage, |
|
|
HardwareBufferManagerBase * | mgr = 0 ) |
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.
- Parameters
-
| 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. |
| bufferUsage | 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. |
| mgr | Optional pointer to the manager to use to create new declarations and buffers etc. If not supplied, the HardwareBufferManager singleton will be used |
| void Ogre::v1::VertexData::reorganiseBuffers |
( |
VertexDeclaration * | newDeclaration, |
|
|
HardwareBufferManagerBase * | mgr = 0 ) |
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.
- Parameters
-
| 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. |
| mgr | Optional pointer to the manager to use to create new declarations and buffers etc. If not supplied, the HardwareBufferManager singleton will be used |