![]() |
Public API Reference |
#include <lightmap.h>
Inheritance diagram for iLightMap:
Public Methods | |
virtual csRGBpixel * | GetMapData ()=0 |
Get light map data. More... | |
virtual int | GetWidth ()=0 |
Get lightmap width (could be adjusted to power of two). More... | |
virtual int | GetHeight ()=0 |
Get lightmap height (could be adjusted to power of two). More... | |
virtual int | GetRealWidth ()=0 |
Get real lightmap width (could be less than returned by GetWidth()). More... | |
virtual int | GetRealHeight ()=0 |
Get real lightmap height (could be less than returned by GetHeight()). More... | |
virtual void * | GetCacheData ()=0 |
Get data used internally by texture cache. More... | |
virtual void | SetCacheData (void *d)=0 |
Set data used internally by texture cache. More... | |
virtual void | GetMeanLighting (int &r, int &g, int &b)=0 |
Get mean color for the lightmaps. More... | |
virtual long | GetSize ()=0 |
Get size of one lightmap. More... |
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.
Definition at line 34 of file lightmap.h.
|
Get data used internally by texture cache.
|
|
Get lightmap height (could be adjusted to power of two).
|
|
Get light map data.
|
|
Get mean color for the lightmaps.
|
|
Get real lightmap height (could be less than returned by GetHeight()).
|
|
Get real lightmap width (could be less than returned by GetWidth()).
|
|
Get size of one lightmap.
|
|
Get lightmap width (could be adjusted to power of two).
|
|
Set data used internally by texture cache.
|