CrystalSpace

Public API Reference

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

csRenderMeshList Class Reference

This class is used when we need to store, sort and then render a list of rendermeshes. More...

#include <rendermeshlist.h>

List of all members.

Public Methods

 csRenderMeshList (iEngine *engine)
 Constructor.

 ~csRenderMeshList ()
 Destructor.

void AddRenderMeshes (csRenderMesh **meshes, int num, long renderPriority, csZBufMode z_buf_mode, const csBox3 &bbox)
 Add a new set of rendermeshes to the lists.

void CullToSphere (const csSphere &sphere)
 Remove all rendermeshes that are outside the specified sphere.

int SortMeshLists ()
 Sort the list of meshes by render priority and within every render priority.

void GetSortedMeshes (csRenderMesh **meshes)
 After sorting the meshes fetch them with this function.

void Empty ()
 Empty the meshlist.


Detailed Description

This class is used when we need to store, sort and then render a list of rendermeshes.

Definition at line 40 of file rendermeshlist.h.


Constructor & Destructor Documentation

csRenderMeshList::csRenderMeshList iEngine   engine
 

Constructor.

It needs objectregistry becouse the meshsorter needs to get the renderpriorities sortingoptions from the engine.

csRenderMeshList::~csRenderMeshList  
 

Destructor.

Clean up the list


Member Function Documentation

void csRenderMeshList::AddRenderMeshes csRenderMesh **    meshes,
int    num,
long    renderPriority,
csZBufMode    z_buf_mode,
const csBox3   bbox
 

Add a new set of rendermeshes to the lists.

void csRenderMeshList::CullToSphere const csSphere   sphere
 

Remove all rendermeshes that are outside the specified sphere.

Note: the sphere's radius has to be the square of it's actual value. (For optimization purposes.)

void csRenderMeshList::Empty  
 

Empty the meshlist.

It will still hold the list of renderpriorities.

void csRenderMeshList::GetSortedMeshes csRenderMesh **    meshes
 

After sorting the meshes fetch them with this function.

int csRenderMeshList::SortMeshLists  
 

Sort the list of meshes by render priority and within every render priority.

Return number of total meshes.


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