class csLightMap The static and all dynamic lightmaps for one or more mipmap-levels of a polygon
| | Alloc (int w, int h, int lms, int r, int g, int b) Allocate the lightmap |
| | AllocStaticLM (int w, int h, int lms) Allocate the static RGBLightMap |
| | Cache (csPolygonSet* owner, csPolygon3D* poly, int index, csWorld* world) Cache the lightmaps in the precalculation area |
| | ConvertFor3dDriver (bool requirePO2, int maxAspect = 32767) Convert the lightmaps to a 3D driver dependent size |
| | ConvertToMixingMode () Convert the lightmaps to the correct mixing mode |
| | CopyLightMap (csLightMap* source) Copy a lightmap. |
| | csLightMap () |
| | DelShadowMap (csShadowMap* plm) Delete a ShadowMap |
| | FindShadowMap (csLight* light) Find a ShadowMap for a specific pseudo-dynamic light |
| | GetHeight () |
| | GetHighColorCacheData () |
| | GetMeanLighting (int& r, int& g, int& b) |
| | GetRealHeight () |
| | GetRealMap () |
| | GetRealWidth () |
| | GetSize () |
| | GetStaticMap () |
| | GetWidth () |
| | MipmapLightMap (int w, int h, int lms, csLightMap* source, int w2, int h2, int lms2) Allocate this lightmap by mipmapping the given source lightmap |
| | NewShadowMap (csLight* light, int w, int h, int lms) Create a ShadowMap for this LightMap |
| | ReadFromCache (int w, int h, int lms, csPolygonSet* owner, csPolygon3D* poly, int index, csWorld* world) Read from the cache |
| | SetHighColorCacheData (HighColorCache_Data *d) |
| | ~csLightMap () |
| | csPolyTexture |
| | Dumper |
| | first_smap Linked list of shadow-maps (for the pseudo-dynamic lights) |
| | hicolorcache The hicolor cache ptr. |
| | lm_size Size of the lightmap. |
| | lwidth LightMap dims (possibly po2 depending on used 3D driver). |
| | mean_r Mean lighting value of this lightmap |
| | real_lm The final lightmap that is going to be used for rendering |
| | rwidth Original lightmap dims (non-po2 possibly). |
| | size Size of the lighted texture. |
| | static_lm A color lightmap containing all static lighting information for the static lights (no pseudo-dynamic lights are here) |
The static and all dynamic lightmaps for one or more mipmap-levels of a polygon
This function also calculates the mean color of the lightmap.
friend class Dumper
csRGBLightMap static_lm
csRGBLightMap real_lm
csShadowMap* first_smap
long size
long lm_size
int lwidth
int rwidth
HighColorCache_Data* hicolorcache
int mean_r
void ConvertToMixingMode(unsigned char* mr, unsigned char* mg, unsigned char* mb, int sz)
This function correctly recognizes a dynamic lightmap which only
contains shadow information and does not do the conversion in that
case.
void SetSize(int w, int h, int lms)
csLightMap()
virtual ~csLightMap()
csRGBLightMap& GetStaticMap()
csRGBLightMap& GetRealMap()
void GetMeanLighting(int& r, int& g, int& b)
int GetWidth()
int GetHeight()
int GetRealWidth()
int GetRealHeight()
long GetSize()
HighColorCache_Data* GetHighColorCacheData()
void SetHighColorCacheData(HighColorCache_Data *d)
void Alloc(int w, int h, int lms, int r, int g, int b)
void MipmapLightMap(int w, int h, int lms, csLightMap* source, int w2, int h2, int lms2)
void CopyLightMap(csLightMap* source)
csShadowMap* NewShadowMap(csLight* light, int w, int h, int lms)
void AllocStaticLM(int w, int h, int lms)
csShadowMap* FindShadowMap(csLight* light)
void DelShadowMap(csShadowMap* plm)
bool ReadFromCache(int w, int h, int lms, csPolygonSet* owner, csPolygon3D* poly, int index, csWorld* world)
void Cache(csPolygonSet* owner, csPolygon3D* poly, int index, csWorld* world)
void ConvertToMixingMode()
void ConvertFor3dDriver(bool requirePO2, int maxAspect = 32767)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de