![]() |
Public API Reference |
#include <meshlod.h>
Inheritance diagram for csStaticLODMesh:
Public Methods | |
csStaticLODMesh () | |
constructor. More... | |
virtual void | SetLOD (float m, float a) |
Set a parameters for a function to compute LOD for the given LOD control. More... | |
virtual void | GetLOD (float &m, float &a) const |
Get the current LOD function. More... | |
virtual void | SetLOD (iSharedVariable *varm, iSharedVariable *vara) |
Set LOD using variables. More... | |
virtual void | GetLOD (iSharedVariable *&varm, iSharedVariable *&vara) const |
Return the variables used by lod. More... | |
virtual int | GetLODPolygonCount (float lod) const |
Get a rough estimate of the number of polygons for a given LOD value (between 0 and 1, similar to the value used by SetLOD()). More... | |
csArray< iMeshWrapper * > & | GetMeshesForLOD (int lod) |
Get the mesh array for the numerical lod. More... | |
csArray< iMeshWrapper * > & | GetMeshesForLOD (float lod) |
Get the mesh array for a lod between 0 and 1. More... | |
int | GetLODCount () |
Get number of lod levels we have. More... |
Definition at line 57 of file meshlod.h.
|
constructor.
|
|
Return the variables used by lod. If lod was not set using variables then varm and vara will be set to 0. Implements iLODControl. |
|
Get the current LOD function.
Implements iLODControl. |
|
Get number of lod levels we have.
Definition at line 116 of file meshlod.h. References csArray::Length. |
|
Get a rough estimate of the number of polygons for a given LOD value (between 0 and 1, similar to the value used by SetLOD()). Note that a mesh object that doesn't support LOD should always return the same number of polygons. Implements iLODControl. |
|
Get the mesh array for a lod between 0 and 1.
Definition at line 106 of file meshlod.h. References csArray::Length. |
|
Get the mesh array for the numerical lod.
Definition at line 96 of file meshlod.h. References csArray::Length, and csArray::SetLength. |
|
Set LOD using variables.
Implements iLODControl. |
|
Set a parameters for a function to compute LOD for the given LOD control. The function is as follows: float lod = m * distance + a;The result of this function will be capped to the [0,1] range with 0 meaning worst quality possible (highest speed) and 1 highest quality. Implements iLODControl. |