iLightManager Struct Reference
[Lighting]
An engine (3D or iso) can implement this interface for the benefit of mesh objects so that they can request lighting information from the engine.
More...
#include <lightmgr.h>
Inheritance diagram for iLightManager:

Public Methods | |
virtual const csArray< iLight * > & | GetRelevantLights (iBase *logObject, int maxLights, bool desireSorting)=0 |
Return all 'relevant' lights that hit this object. |
Detailed Description
An engine (3D or iso) can implement this interface for the benefit of mesh objects so that they can request lighting information from the engine.The 'logObject' parameter given to these functions is the logical parent that is set in the mesh objects. The engine must attempt to give this information as efficiently as possible. That means only recalculating this lighting information when needed (i.e. light moves, object moves, ...).
The engine registers an implementation of this object in the object registry with the "iLightManager" name.
Definition at line 47 of file lightmgr.h.
Member Function Documentation
|
Return all 'relevant' lights that hit this object. Depending on implementation in the engine this can simply mean a list of all lights that affect the object or it can be a list of the N most relevant lights (with N a parameter set by the user on that object).
|
The documentation for this struct was generated from the following file:
- iengine/lightmgr.h
Generated for Crystal Space by doxygen 1.2.18