CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csVertexArrayPool Class Reference
[Geometry utilities]

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. More...

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.

Definition at line 34 of file vtpool.h.


Constructor & Destructor Documentation

virtual csVertexArrayPool::~csVertexArrayPool   [inline, virtual]
 

Destroy pool and all vertex arrays in it.

Definition at line 38 of file vtpool.h.


Member Function Documentation

virtual 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.

Implemented in csDefaultVertexArrayPool.

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

Fetch a new array of n vertices.

Return NULL on failure.

Implemented in csDefaultVertexArrayPool.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14