![]() |
Public API Reference |
#include <vtpool.h>
Inheritance diagram for csStackedVertexArrayPool:
Public Methods | |
csStackedVertexArrayPool (int maxn) | |
Allocate a vertex array pool with max maxn vertices. More... | |
virtual | ~csStackedVertexArrayPool () |
Destroy pool and all vertex arrays in it. More... | |
virtual csVector3 * | GetVertexArray (int n) |
Fetch a new array of n vertices. Return NULL on failure. More... | |
virtual void | FreeVertexArray (csVector3 *ar, int n) |
Free an array of n vertices. More... | |
void | Clear () |
Reinitialize the pool. More... |
This one takes vertices from a big pool. Note that 'FreeVertexArray' only works to delete the last allocated array. i.e. you can only allocate and delete array in a stack fashion.
Definition at line 88 of file vtpool.h.
|
Allocate a vertex array pool with max maxn vertices.
|
|
Destroy pool and all vertex arrays in it.
|
|
Reinitialize the pool.
|
|
Free an array of n vertices.
Implements csVertexArrayPool. |
|
Fetch a new array of n vertices. Return NULL on failure.
Implements csVertexArrayPool. |