#include <indexbuffer.h>
Public Member Functions | |
IndexBuffer () | |
virtual | ~IndexBuffer () |
void | Cache (unsigned int numIndex, unsigned int *index) |
caches (i.e. | |
void | Cache (unsigned int newIndex) |
appends a single index | |
void | Flush () |
empties the index buffer | |
int | GetNumIndex () const |
returns the number of cached indeces | |
boost::shared_array< unsigned int > | GetIndex () const |
returns a cached index | |
void | EnsureFit (unsigned int count) |
ensures that the index buffer can hold the additional (!) number of elements (creates new storage on demand, copys old data) | |
Protected Attributes | |
unsigned int | mMaxIndex |
the maximum number of indices we can cache with the allocated memory | |
unsigned int | mNumIndex |
the number of indices currently cached | |
boost::shared_array< unsigned int > | mIndex |
pointer to the memory, where we cache the indices |
It is used together with the StaticMesh class
Definition at line 34 of file indexbuffer.h.
|
Definition at line 29 of file indexbuffer.cpp. |
|
Definition at line 32 of file indexbuffer.cpp. |
|
appends a single index
Definition at line 45 of file indexbuffer.cpp. References Cache(). Here is the call graph for this function: ![]() |
|
caches (i.e. copies) an index list for rendering at a later point in time, growing the index cache if necessary.
Definition at line 36 of file indexbuffer.cpp. References EnsureFit(), mIndex, and mNumIndex. Referenced by Cache(). Here is the call graph for this function: ![]() |
|
ensures that the index buffer can hold the additional (!) number of elements (creates new storage on demand, copys old data)
Definition at line 50 of file indexbuffer.cpp. References mIndex, mMaxIndex, and mNumIndex. Referenced by Cache(). |
|
empties the index buffer
Definition at line 85 of file indexbuffer.cpp. References mNumIndex. |
|
returns a cached index
Definition at line 95 of file indexbuffer.cpp. References mIndex. |
|
returns the number of cached indeces
Definition at line 90 of file indexbuffer.cpp. References mNumIndex. |
|
pointer to the memory, where we cache the indices
Definition at line 75 of file indexbuffer.h. Referenced by Cache(), EnsureFit(), and GetIndex(). |
|
the maximum number of indices we can cache with the allocated memory
Definition at line 69 of file indexbuffer.h. Referenced by EnsureFit(). |
|
the number of indices currently cached
Definition at line 72 of file indexbuffer.h. Referenced by Cache(), EnsureFit(), Flush(), and GetNumIndex(). |