OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Summary class collecting together index data source information. More...
#include <OgreVertexIndexData.h>
Public Member Functions | |
IndexData () | |
~IndexData () | |
IndexData * | clone (bool copyData=true, HardwareBufferManagerBase *mgr=0) const |
Clones this index data, potentially including replicating the index buffer. | |
void | optimiseVertexCacheTriList (void) |
Re-order the indexes in this index data structure to be more vertex cache friendly; that is to re-use the same vertices as close together as possible. | |
Public Attributes | |
HardwareIndexBufferSharedPtr | indexBuffer |
Pointer to the HardwareIndexBuffer to use, must be specified if useIndexes = true. | |
uint32 | indexCount |
The number of indexes to use from the buffer. | |
uint32 | indexStart |
Index in the buffer to start from for this operation. | |
Summary class collecting together index data source information.
Ogre::IndexData::IndexData | ( | ) |
Ogre::IndexData::~IndexData | ( | ) |
IndexData * Ogre::IndexData::clone | ( | bool | copyData = true , |
HardwareBufferManagerBase * | mgr = 0 |
||
) | const |
Clones this index data, potentially including replicating the index buffer.
copyData | Whether to create new buffers too or just reference the existing ones |
mgr | If supplied, the buffer manager through which copies should be made |
Re-order the indexes in this index data structure to be more vertex cache friendly; that is to re-use the same vertices as close together as possible.
Can only be used for index data which consists of triangle lists. It would in fact be pointless to use it on triangle strips or fans in any case.
HardwareIndexBufferSharedPtr Ogre::IndexData::indexBuffer |
Pointer to the HardwareIndexBuffer to use, must be specified if useIndexes = true.
uint32 Ogre::IndexData::indexStart |
Index in the buffer to start from for this operation.
uint32 Ogre::IndexData::indexCount |
The number of indexes to use from the buffer.