![]() |
Public API Reference |
#include <light.h>
Inheritance diagram for csLight::Light:
Public Methods | |
virtual csLight * | GetPrivateObject () |
Get private pointer to light object. UGLY. More... | |
virtual const char * | GetLightID () |
Get the id of this light. This is a 16-byte MD5. More... | |
virtual iObject * | QueryObject () |
Get the iObject for this light. More... | |
virtual const csVector3 & | GetCenter () |
Get the position of this light. More... | |
virtual void | SetCenter (const csVector3 &pos) |
Set the position of this light. More... | |
virtual iSector * | GetSector () |
Get the sector for this light. More... | |
virtual void | SetSector (iSector *sector) |
Set the sector for this light. More... | |
virtual float | GetInfluenceRadius () |
Get the influence radius of the light. More... | |
virtual float | GetInfluenceRadiusSq () |
Get the squared influence radius of the light. More... | |
virtual void | SetInfluenceRadius (float radius) |
Override the influence radius. More... | |
virtual const csColor & | GetColor () |
Get the color of this light. More... | |
virtual void | SetColor (const csColor &col) |
Set the color of this light. More... | |
virtual bool | IsDynamic () const |
Return true if this light is pseudo-dynamic. More... | |
virtual int | GetAttenuation () |
Return current attenuation mode. More... | |
virtual void | SetAttenuation (int a) |
Set attenuation mode. More... | |
virtual float | GetBrightnessAtDistance (float d) |
Get the brightness of a light at a given distance. More... | |
virtual void | SetAttenuationVector (const csVector3 &attenv) |
Set attenuation vector csVector3(constant, linear, quadric) FIXME: examples. More... | |
virtual const csVector3 & | GetAttenuationVector () |
Get attenuation vector csVector3(constant, linear, quadric). More... | |
virtual void | CalculateAttenuationVector (int atttype, float radius, float brightness) |
Calculate the attenuation vector for a given attenuation type. More... | |
virtual bool | GetDistanceForBrightness (float brightness, float &distance) |
Get the distance for a given light brightness. More... | |
virtual iCrossHalo * | CreateCrossHalo (float intensity, float cross) |
Create a cross halo for this light. More... | |
virtual iNovaHalo * | CreateNovaHalo (int seed, int num_spokes, float roundness) |
Create a nova halo for this light. More... | |
virtual iFlareHalo * | CreateFlareHalo () |
Create a flare halo for this light. More... | |
virtual csFlags & | GetFlags () |
Get flags for this light. More... | |
virtual void | SetLightCallback (iLightCallback *cb) |
Set the light callback. More... | |
virtual void | RemoveLightCallback (iLightCallback *cb) |
Remove a light callback. More... | |
virtual int | GetLightCallbackCount () const |
Get the number of light callbacks. More... | |
virtual iLightCallback * | GetLightCallback (int idx) const |
Get the specified light callback. More... | |
virtual uint32 | GetLightNumber () const |
Return a number that changes when the light changes (color, or position). More... |
Definition at line 292 of file csengine/light.h.
|
Calculate the attenuation vector for a given attenuation type.
Implements iLight. Definition at line 332 of file csengine/light.h. |
|
Create a cross halo for this light.
Implements iLight. |
|
Create a flare halo for this light.
Implements iLight. |
|
Create a nova halo for this light.
Implements iLight. |
|
Return current attenuation mode.
Implements iLight. Definition at line 320 of file csengine/light.h. |
|
Get attenuation vector csVector3(constant, linear, quadric).
Implements iLight. Definition at line 328 of file csengine/light.h. |
|
Get the brightness of a light at a given distance.
Implements iLight. Definition at line 322 of file csengine/light.h. |
|
Get the position of this light.
Implements iLight. Definition at line 298 of file csengine/light.h. |
|
Get the color of this light.
Implements iLight. Definition at line 317 of file csengine/light.h. |
|
Get the distance for a given light brightness.
Implements iLight. Definition at line 335 of file csengine/light.h. |
|
Get flags for this light. Supported flags: Implements iLight. Definition at line 341 of file csengine/light.h. References csFlags::flags. |
|
Get the influence radius of the light.
Implements iLight. Definition at line 305 of file csengine/light.h. |
|
Get the squared influence radius of the light.
Implements iLight. Definition at line 309 of file csengine/light.h. |
|
Get the specified light callback.
Implements iLight. Definition at line 354 of file csengine/light.h. |
|
Get the number of light callbacks.
Implements iLight. Definition at line 350 of file csengine/light.h. |
|
Get the id of this light. This is a 16-byte MD5.
Implements iLight. Definition at line 296 of file csengine/light.h. |
|
Return a number that changes when the light changes (color, or position).
Implements iLight. Definition at line 358 of file csengine/light.h. References uint32. |
|
Get private pointer to light object. UGLY.
Implements iLight. Definition at line 295 of file csengine/light.h. |
|
Get the sector for this light.
Implements iLight. Definition at line 303 of file csengine/light.h. |
|
Return true if this light is pseudo-dynamic.
Implements iLight. Definition at line 319 of file csengine/light.h. |
|
Get the iObject for this light.
Implements iLight. Definition at line 297 of file csengine/light.h. |
|
Remove a light callback.
Implements iLight. Definition at line 346 of file csengine/light.h. |
|
Set attenuation mode. The following values are possible (default is CS_ATTN_LINEAR):
Implements iLight. Definition at line 321 of file csengine/light.h. |
|
Set attenuation vector csVector3(constant, linear, quadric) FIXME: examples.
Implements iLight. Definition at line 326 of file csengine/light.h. |
|
Set the position of this light.
Implements iLight. Definition at line 299 of file csengine/light.h. |
|
Set the color of this light.
Implements iLight. Definition at line 318 of file csengine/light.h. |
|
Override the influence radius.
Implements iLight. Definition at line 313 of file csengine/light.h. |
|
Set the light callback. This will call IncRef() on the callback So make sure you call DecRef() to release your own reference. Implements iLight. Definition at line 342 of file csengine/light.h. |
|
Set the sector for this light.
Implements iLight. Definition at line 304 of file csengine/light.h. |