Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iLightMap Struct Reference

The lightmap interface. More...

#include <lightmap.h>

Inheritance diagram for iLightMap:

iBase csLightMap List of all members.

Public Methods

virtual csRGBpixelGetMapData ()=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.


Detailed Description

The lightmap interface.

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.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000