#include <vtpool.h>
Inheritance diagram for csPooledVertexArrayPool:
Public Methods | |
csPooledVertexArrayPool () | |
Allocate a vertex array pool. | |
virtual | ~csPooledVertexArrayPool () |
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. | |
Static Public Methods | |
csPooledVertexArrayPool& | GetDefaultPool () |
Fetch the singleton instance of this pool. |
This one takes vertices from a big pool. It allows random allocation and free of arrays but it less efficient than csStackedVertexArrayPool.