class csStatLight : public csLight Class for a static light
| | CalculateLighting (csThing* th) Shine this light on all polygons of the csThing |
| | CalculateLighting () Shine this light on all polygons visible from the light |
| | csStatLight (float x, float y, float z, float dist, float red, float green, float blue, bool dynamic) Construct a static light at a given position |
| | IsDynamic () Return true if this light is pseudo-dynamic |
| | LightingFunc (csLightingFunc* callback, void* callback_data = NULL) This function is similar to CalculateLighting |
| | RegisterPolygon (csPolygon3D* poly) Register a polygon for a pseudo-dynamic light |
| | SetColor (const csColor& col) Set the light color |
| | ~csStatLight () Destroy the light |
| | dynamic The following three variables are used if the light intensity can vary |
| | num_polygon Number of polygons affected by this dynamic light. |
| | polygons List of polygons that are affected by this dynamic light. |
Class for a static light. These lights cast shadows (against sector boundaries and with things), they support three different colors (R,G,B). They cannot move and they can only vary in intensity with some memory trade-offs (in which case we call it a pseudo-dynamic light).
int num_polygon
csPolygon3D** polygons
csStatLight(float x, float y, float z, float dist, float red, float green, float blue, bool dynamic)
virtual ~csStatLight()
bool IsDynamic()
virtual void SetColor(const csColor& col)
void RegisterPolygon(csPolygon3D* poly)
void CalculateLighting()
void CalculateLighting(csThing* th)
void LightingFunc(csLightingFunc* callback, void* callback_data = NULL)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de