OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::v1::IndexData Class Reference

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

#include <OgreVertexIndexData.h>

+ Inheritance diagram for Ogre::v1::IndexData:

Public Member Functions

 IndexData ()
 
 ~IndexData ()
 
IndexDataclone (bool copyData=true, HardwareBufferManagerBase *mgr=0) const
 Clones this index data, potentially including replicating the index buffer.
 
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 *)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
voidoperator new (size_t sz, void *ptr)
 placement operator new
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
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.
 
size_t indexCount
 The number of indexes to use from the buffer.
 
size_t indexStart
 Index in the buffer to start from for this operation.
 

Detailed Description

Summary class collecting together index data source information.

Constructor & Destructor Documentation

◆ IndexData()

Ogre::v1::IndexData::IndexData ( )

◆ ~IndexData()

Ogre::v1::IndexData::~IndexData ( )

Member Function Documentation

◆ clone()

IndexData * Ogre::v1::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

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
void  
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

array operator new, with debug line info

◆ optimiseVertexCacheTriList()

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

Remarks
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::v1::IndexData::indexBuffer

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

◆ indexCount

size_t Ogre::v1::IndexData::indexCount

The number of indexes to use from the buffer.

◆ indexStart

size_t Ogre::v1::IndexData::indexStart

Index in the buffer to start from for this operation.


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