CrystalSpace

Public API Reference

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

csStackedVertexArrayPool Class Reference
[Geometry utilities]

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

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

virtual csVector3GetVertexArray (int n)
 Fetch a new array of n vertices. Return 0 on failure. More...

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

void Clear ()
 Reinitialize the pool. More...


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

csStackedVertexArrayPool::csStackedVertexArrayPool int    maxn [inline]
 

Allocate a vertex array pool with max maxn vertices.

Definition at line 96 of file vtpool.h.

virtual csStackedVertexArrayPool::~csStackedVertexArrayPool   [inline, virtual]
 

Destroy pool and all vertex arrays in it.

Definition at line 104 of file vtpool.h.


Member Function Documentation

void csStackedVertexArrayPool::Clear   [inline]
 

Reinitialize the pool.

Definition at line 124 of file vtpool.h.

virtual void csStackedVertexArrayPool::FreeVertexArray csVector3   ar,
int    n
[inline, virtual]
 

Free an array of n vertices.

Implements csVertexArrayPool.

Definition at line 118 of file vtpool.h.

virtual csVector3* csStackedVertexArrayPool::GetVertexArray int    n [inline, virtual]
 

Fetch a new array of n vertices. Return 0 on failure.

Implements csVertexArrayPool.

Definition at line 110 of file vtpool.h.


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