Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csVertexArrayPool Class Reference

This is a generalized vertex array pool. More...

#include <vtpool.h>

Inheritance diagram for csVertexArrayPool:

csDefaultVertexArrayPool csPooledVertexArrayPool csStackedVertexArrayPool List of all members.

Public Methods

virtual ~csVertexArrayPool ()
 Destroy pool and all vertex arrays in it.

virtual csVector3GetVertexArray (int n)=0
 Fetch a new array of n vertices. More...

virtual void FreeVertexArray (csVector3 *ar, int n)=0
 Free an array of n vertices. More...


Detailed Description

This is a generalized vertex array pool.

Use this to obtain vertex arrays of some length. This is an abstract class.


Member Function Documentation

void csVertexArrayPool::FreeVertexArray ( csVector3 * ar,
int n ) [pure virtual]
 

Free an array of n vertices.

Implementations of FreeVertexArray() are guaranteed to check if 'ar' == NULL and do nothing in that case.

Reimplemented in csDefaultVertexArrayPool, csStackedVertexArrayPool, and csPooledVertexArrayPool.

csVector3 * csVertexArrayPool::GetVertexArray ( int n ) [pure virtual]
 

Fetch a new array of n vertices.

Return NULL on failure.

Reimplemented in csDefaultVertexArrayPool, csStackedVertexArrayPool, and csPooledVertexArrayPool.


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