CrystalSpace

Public API Reference

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

csPooledVertexArrayPool Class Reference
[Geometry utilities]

This is another implementation of csVertexArrayPool. More...

#include <vtpool.h>

Inheritance diagram for csPooledVertexArrayPool:

csVertexArrayPool List of all members.

Public Methods

 csPooledVertexArrayPool ()
 Allocate a vertex array pool. More...

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

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

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


Detailed Description

This is another implementation of csVertexArrayPool.

This one takes vertices from a big pool. It allows random allocation and free of arrays but it less efficient than csStackedVertexArrayPool.

Definition at line 135 of file vtpool.h.


Constructor & Destructor Documentation

csPooledVertexArrayPool::csPooledVertexArrayPool  
 

Allocate a vertex array pool.

virtual csPooledVertexArrayPool::~csPooledVertexArrayPool   [virtual]
 

Destroy pool and all vertex arrays in it.


Member Function Documentation

virtual void csPooledVertexArrayPool::FreeVertexArray csVector3   ar,
int    n
[virtual]
 

Free an array of n vertices.

Implements csVertexArrayPool.

virtual csVector3* csPooledVertexArrayPool::GetVertexArray int    n [virtual]
 

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

Implements csVertexArrayPool.


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