void AllocateBuffer |
( |
const unsigned int |
size | ) |
|
|
protected |
Allocates the buffer data, copying the existing data
- Parameters
-
size | The new size in bytes to allocate |
Download the index buffer data to Open GL
- Precondition
- (_vboHandle != 0) && (_size > 0)
- Parameters
-
stateManager | The OpenGL state to download the index buffer to |
Bind the index buffer, e.g. make it current
- Precondition
- (_vboHandle != 0) && (_size > 0)
- Parameters
-
stateManager | The OpenGL state to bind the buffer on |
void DeallocateBuffer |
( |
| ) |
|
|
protected |
Deallocates the buffer data
unsigned int GetSize |
( |
| ) |
const |
|
inline |
- Returns
- Returns the size of the index buffer
void SetIndex |
( |
const unsigned int |
index, |
|
|
const unsigned short |
value |
|
) |
| |
Sets one index
- Precondition
- index < _size
- Parameters
-
index | The index of the index to set |
val | The index data |
void SetIndices |
( |
const unsigned short |
indexData[] | ) |
|
Populates the the index buffer
- Precondition
- _size > 0
- Parameters
-
indexData | The indices to set. The array length is assumed to be equal to GetSize() |
void SetSize |
( |
const unsigned int |
size | ) |
|
Sets the size of the index buffer
- Parameters
-
size | New index buffer count |
unsigned short* _indexData |
|
protected |
The memory for storing the indices
The number of indices. There can be unsigned int quantity of unsigned short values
The documentation for this class was generated from the following file: