#include <light.h>
Inheritance diagram for iLight:

Public Methods | |
| virtual csLight* | GetPrivateObject ()=0 |
| Get private pointer to light object. UGLY. | |
| virtual unsigned long | GetLightID ()=0 |
| Get the id of this light. | |
| virtual iObject* | QueryObject ()=0 |
| Get the iObject for this light. | |
| virtual const csVector3& | GetCenter ()=0 |
| Get the position of this light. | |
| virtual void | SetCenter (const csVector3 &pos)=0 |
| Set the position of this light. | |
| virtual iSector* | GetSector ()=0 |
| Get the sector for this light. | |
| virtual void | SetSector (iSector *sector)=0 |
| Set the sector for this light. | |
| virtual float | GetRadius ()=0 |
| Get the radius. | |
| virtual float | GetSquaredRadius ()=0 |
| Get the squared radius. | |
| virtual float | GetInverseRadius ()=0 |
| Get the inverse radius. | |
| virtual void | SetRadius (float r)=0 |
| Set the radius. | |
| virtual const csColor& | GetColor ()=0 |
| Get the color of this light. | |
| virtual void | SetColor (const csColor &col)=0 |
| Set the color of this light. | |
| virtual int | GetAttenuation ()=0 |
| Return current attenuation mode. | |
| virtual void | SetAttenuation (int a)=0 |
| Set attenuation mode. More... | |
| virtual iCrossHalo* | CreateCrossHalo (float intensity, float cross)=0 |
| Create a cross halo for this light. | |
| virtual iNovaHalo* | CreateNovaHalo (int seed, int num_spokes, float roundness)=0 |
| Create a nova halo for this light. | |
| virtual iFlareHalo* | CreateFlareHalo ()=0 |
| Create a flare halo for this light. | |
| virtual float | GetBrightnessAtDistance (float d)=0 |
| Get the brightness of a light at a given distance. | |
|
|
Set attenuation mode. The following values are possible (CS_ATTN_LINEAR is default CS_ATTN_LINEAR):
|