#include <lighting.h>
Inheritance diagram for iLightingInfo:
Public Methods | |
virtual void | InitializeDefault ()=0 |
Initialize the lighting information to some default (mostly black). | |
virtual bool | ReadFromCache (iCacheManager *cache_mgr, int id)=0 |
Read the lighting information from the cache. More... | |
virtual bool | WriteToCache (iCacheManager *cache_mgr, int id)=0 |
Write the lighting information to the cache. More... | |
virtual void | PrepareLighting ()=0 |
Finally prepare the lighting for use. More... | |
virtual void | SetCacheName (const char *cachename)=0 |
Set the name of the lightmap cache to use for this. More... | |
virtual const char* | GetCacheName () const=0 |
Get the name of the lightmap cache used for this. More... |
It has features to initialize lighting, to read it from a cache, ...
|
Get the name of the lightmap cache used for this. Returns NULL if none given. |
|
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. The id is used to uniquely identify the elements of this cache. |
|
Set the name of the lightmap cache to use for this. If not given then the 'id' will be used for uniqueness. |
|
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. The id is used to uniquely identify the elements of this cache. |