OGRE  master
Object-Oriented Graphics Rendering Engine
Ogre::IndexData Class Reference

Summary class collecting together index data source information. More...

#include <OgreVertexIndexData.h>

+ Inheritance diagram for Ogre::IndexData:

Public Member Functions

 IndexData ()
 
 ~IndexData ()
 
IndexDataclone (bool copyData=true, HardwareBufferManagerBase *mgr=0) const
 Clones this index data, potentially including replicating the index buffer. More...
 
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. More...
 

Public Attributes

HardwareIndexBufferSharedPtr indexBuffer
 Pointer to the HardwareIndexBuffer to use, must be specified if useIndexes = true. More...
 
uint32 indexCount
 The number of indexes to use from the buffer. More...
 
uint32 indexStart
 Index in the buffer to start from for this operation. More...
 

Detailed Description

Summary class collecting together index data source information.

Constructor & Destructor Documentation

◆ IndexData()

Ogre::IndexData::IndexData ( )

◆ ~IndexData()

Ogre::IndexData::~IndexData ( )

Member Function Documentation

◆ clone()

IndexData* Ogre::IndexData::clone ( bool  copyData = true,
HardwareBufferManagerBase mgr = 0 
) const

Clones this index data, potentially including replicating the index buffer.

Parameters
copyDataWhether to create new buffers too or just reference the existing ones
mgrIf supplied, the buffer manager through which copies should be made
Remarks
The caller is expected to delete the returned pointer when finished

◆ optimiseVertexCacheTriList()

void Ogre::IndexData::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.

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.

Member Data Documentation

◆ indexBuffer

HardwareIndexBufferSharedPtr Ogre::IndexData::indexBuffer

Pointer to the HardwareIndexBuffer to use, must be specified if useIndexes = true.

Referenced by Ogre::Lod0Stripifier::~Lod0Stripifier().

◆ indexStart

uint32 Ogre::IndexData::indexStart

Index in the buffer to start from for this operation.

Referenced by Ogre::Lod0Stripifier::~Lod0Stripifier().

◆ indexCount

uint32 Ogre::IndexData::indexCount

The number of indexes to use from the buffer.

Referenced by Ogre::ManualObject::index(), and Ogre::Lod0Stripifier::~Lod0Stripifier().


The documentation for this class was generated from the following file: