![]() |
Public API Reference |
![]() |
Standard rendermesh sorter. More...
#include <csplugincommon/rendermanager/standardsorter.h>
Public Member Functions | |
void | operator() (typename Tree::MeshNode *meshNode) |
Sort given mesh node. | |
void | SetupCameraLocation (const csVector3 &vec) |
Set the camera location to be used for b2f/f2b sorting. |
Standard rendermesh sorter.
Sorts mesh nodes depending on their render priority, either back2front/front2back or based on material and factories.
Usage: with mesh node iteration. SetupCameraLocation () must be called with the current camera location. Sorting is typically done after visibility culling and portal setup. Example:
// Sort the mesh lists { StandardMeshSorter<RenderTree> mySorter (renderView->GetEngine ()); mySorter.SetupCameraLocation (rview->GetCamera ()->GetTransform ().GetOrigin ()); ForEachMeshNode (context, mySorter); }
Definition at line 55 of file standardsorter.h.
void CS::RenderManager::StandardMeshSorter< Tree >::operator() | ( | typename Tree::MeshNode * | meshNode | ) | [inline] |
Sort given mesh node.
Definition at line 85 of file standardsorter.h.
void CS::RenderManager::StandardMeshSorter< Tree >::SetupCameraLocation | ( | const csVector3 & | vec | ) | [inline] |
Set the camera location to be used for b2f/f2b sorting.
Definition at line 77 of file standardsorter.h.