#include <vtpool.h>
Inheritance diagram for csStackedVertexArrayPool:
Public Methods | |
csStackedVertexArrayPool (int maxn) | |
Allocate a vertex array pool with max maxn vertices. | |
virtual | ~csStackedVertexArrayPool () |
Destroy pool and all vertex arrays in it. | |
virtual csVector3* | GetVertexArray (int n) |
Fetch a new array of n vertices. Return NULL on failure. | |
virtual void | FreeVertexArray (csVector3 *ar, int n) |
Free an array of n vertices. | |
void | Clear () |
Reinitialize the pool. |
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.