csStackedVertexArrayPool Class Reference
[Geometry utilities]
This is another implementation of csVertexArrayPool.
More...
#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 0 on failure. | |
virtual void | FreeVertexArray (csVector3 *ar, int n) |
Free an array of n vertices. | |
void | Clear () |
Reinitialize the pool. |
Detailed Description
This is another implementation of csVertexArrayPool.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.
Constructor & Destructor Documentation
|
Allocate a vertex array pool with max maxn vertices.
|
|
Destroy pool and all vertex arrays in it.
|
Member Function Documentation
|
Reinitialize the pool.
|
|
Free an array of n vertices.
Implements csVertexArrayPool. |
|
Fetch a new array of n vertices. Return 0 on failure.
Implements csVertexArrayPool. |
The documentation for this class was generated from the following file:
- csgeom/vtpool.h
Generated for Crystal Space by doxygen 1.2.18