CS::Lighting::SimpleStaticLighter Class Reference
The functions in this class all provide a simple way to initialize the "static color" of a mesh (usually genmesh) to provide a way to do simple static 'lighting'. More...
#include <cstool/simplestaticlighter.h>
Public Types | |
Static Public Member Functions | |
static void | ConstantColor (iMeshWrapper *mesh, const csColor4 &color) |
Fill the static color of the mesh with the given color. | |
static void | ShineLight (iMeshWrapper *mesh, iLight *light, ShadowType shadow_type=CS_SHADOW_NONE) |
Calculate lighting for this mesh as seen from the given light. | |
static void | ShineLights (iSector *sector, iEngine *engine, int maxlights, ShadowType shadow_type=CS_SHADOW_NONE) |
Calculate lighting for all meshes in this sector as seen from a specified number of lights that affect those meshes. | |
static void | ShineLights (iMeshWrapper *mesh, iEngine *engine, int maxlights, ShadowType shadow_type=CS_SHADOW_NONE) |
Calculate lighting for this mesh as seen from a specified number of lights that affect this mesh. |
Detailed Description
The functions in this class all provide a simple way to initialize the "static color" of a mesh (usually genmesh) to provide a way to do simple static 'lighting'.Calling this function has the same effect as having a mesh which is staticly lit using vertex lighting through the lighter2 utility.
Definition at line 47 of file simplestaticlighter.h.
Member Enumeration Documentation
Specify what type of shadows we want here.
- Enumerator:
Definition at line 53 of file simplestaticlighter.h.
Member Function Documentation
static void CS::Lighting::SimpleStaticLighter::ConstantColor | ( | iMeshWrapper * | mesh, | |
const csColor4 & | color | |||
) | [static] |
Fill the static color of the mesh with the given color.
static void CS::Lighting::SimpleStaticLighter::ShineLight | ( | iMeshWrapper * | mesh, | |
iLight * | light, | |||
ShadowType | shadow_type = CS_SHADOW_NONE | |||
) | [static] |
Calculate lighting for this mesh as seen from the given light.
static void CS::Lighting::SimpleStaticLighter::ShineLights | ( | iSector * | sector, | |
iEngine * | engine, | |||
int | maxlights, | |||
ShadowType | shadow_type = CS_SHADOW_NONE | |||
) | [static] |
Calculate lighting for all meshes in this sector as seen from a specified number of lights that affect those meshes.
static void CS::Lighting::SimpleStaticLighter::ShineLights | ( | iMeshWrapper * | mesh, | |
iEngine * | engine, | |||
int | maxlights, | |||
ShadowType | shadow_type = CS_SHADOW_NONE | |||
) | [static] |
Calculate lighting for this mesh as seen from a specified number of lights that affect this mesh.
The documentation for this class was generated from the following file:
- cstool/simplestaticlighter.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8