![]() |
Public API Reference |
#include <halo.h>
Inheritance diagram for csLightHalo:
Public Methods | |
csLightHalo (csLight *iLight, iHalo *iHandle) | |
Create an light halo object. More... | |
virtual | ~csLightHalo () |
Destroy the light halo object. More... | |
virtual bool | Process (csTicks ElapsedTime, csEngine const &) |
Process a light halo. More... | |
bool | IsVisible (csEngine const &engine, csVector3 &v) |
see if camera position is visible, returns it projected onto screen. More... | |
bool | ComputeNewIntensity (csTicks ElapsedTime, float &hintensity, bool halo_vis) |
add up elapsed time, and returns new intensity, given the current halo intensity. More... | |
Public Attributes | |
csLight * | Light |
The light this halo is attached to. More... | |
iHalo * | Handle |
Halo handle as returned by 3D rasterizer. More... | |
csTicks | LastTime |
Last time we were updated. More... |
When the engine detects that a light that is marked to have an halo is directly visible, an object of this type is created and put into a global queue maintained within the engine object. The light starts to brighten until it reaches maximal intensity; when the halo becomes obscured by something or goes out of view the intensity starts to decrease until it reaches zero; upon this event the halo object is destroyed and removed from halo queue.
Definition at line 205 of file csengine/halo.h.
|
Create an light halo object.
|
|
Destroy the light halo object.
|
|
add up elapsed time, and returns new intensity, given the current halo intensity. Give whether halo is currently visible for fading in and out. returns true if intensity >0, returns false if intensity <= 0, when the halo is completely faded out. Called by Process. |
|
see if camera position is visible, returns it projected onto screen. Called by Process. |
|
Process a light halo. The function changes halo brightness depending whenever the halo is obscured or not and returns "false" if halo has reached zero intensity and should be removed from halo queue. The function also actually projects, clips and draws the halo. Reimplemented in csLightFlareHalo. |
|
Halo handle as returned by 3D rasterizer.
Definition at line 212 of file csengine/halo.h. |
|
Last time we were updated.
Definition at line 215 of file csengine/halo.h. |
|
The light this halo is attached to.
Definition at line 209 of file csengine/halo.h. |