#include <lightmap.h>
Inheritance diagram for iLightMap:
Public Methods | |
virtual csRGBpixel* | GetMapData ()=0 |
Get light map data. | |
virtual int | GetWidth ()=0 |
Get lightmap width (could be adjusted to power of two). | |
virtual int | GetHeight ()=0 |
Get lightmap height (could be adjusted to power of two). | |
virtual int | GetRealWidth ()=0 |
Get real lightmap width (could be less than returned by GetWidth()). | |
virtual int | GetRealHeight ()=0 |
Get real lightmap height (could be less than returned by GetHeight()). | |
virtual void* | GetCacheData ()=0 |
Get data used internally by texture cache. | |
virtual void | SetCacheData (void *d)=0 |
Set data used internally by texture cache. | |
virtual void | GetMeanLighting (int &r, int &g, int &b)=0 |
Get mean color for the lightmaps. | |
virtual long | GetSize ()=0 |
Get size of one lightmap. |
A lightmap is similar to a texture but contains just intensities, 256 levels from 0 to 255. This map is overlaid onto the texture to obtain darker or brighter portions of texture.