![]() |
Public API Reference |
#include <lighting.h>
Inheritance diagram for iLightingInfo:
Public Methods | |
virtual void | InitializeDefault ()=0 |
Initialize the lighting information to some default (mostly black). More... | |
virtual bool | ReadFromCache (iCacheManager *cache_mgr)=0 |
Read the lighting information from the cache. More... | |
virtual bool | WriteToCache (iCacheManager *cache_mgr)=0 |
Write the lighting information to the cache. More... | |
virtual void | PrepareLighting ()=0 |
Finally prepare the lighting for use. More... | |
virtual void | SetDynamicAmbientLight (const csColor &color)=0 |
Sets dynamic ambient light for this object. More... | |
virtual const csColor & | GetDynamicAmbientLight ()=0 |
Get dynamic ambient light. More... | |
virtual void | DynamicLightChanged (iDynLight *dynlight)=0 |
Indicate that some dynamic light has changed. More... | |
virtual void | DynamicLightDisconnect (iDynLight *dynlight)=0 |
Indicate that some dynamic light no longer affects this mesh. More... | |
virtual void | StaticLightChanged (iStatLight *statlight)=0 |
Indicate that some pseudo-dynamic light has changed color. More... |
It has features to initialize lighting, to read it from a cache, ...
Definition at line 35 of file imesh/lighting.h.
|
Indicate that some dynamic light has changed. This function will be called by the lighting system whenever a dynamic light that affects this mesh is changed in some way. |
|
Indicate that some dynamic light no longer affects this mesh.
|
|
Get dynamic ambient light.
|
|
Initialize the lighting information to some default (mostly black).
|
|
Finally prepare the lighting for use. This function must be called last. |
|
Read the lighting information from the cache. Call this instead of InitializeDefault(). Returns false if there was a problem. This function will read the data from the current VFS dir. |
|
Sets dynamic ambient light for this object.
|
|
Indicate that some pseudo-dynamic light has changed color.
|
|
Write the lighting information to the cache. Returns false if there was a problem. This function will write the data to the current VFS dir. |