Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csStackedVertexArrayPool Class Reference

This is another implementation of csVertexArrayPool. More...

#include <vtpool.h>

Inheritance diagram for csStackedVertexArrayPool:

csVertexArrayPool List of all members.

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 csVector3GetVertexArray (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.


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.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000