In file include/csengine/polygon.h:

## class csLightMapped : public csPolygonTextureType

> Texture class for lightmapped polygons

## Inheritance:

### Public Methods

  csLightMap* | GetLightMap () Get the lightmap belonging with this polygon
  csPolyTexture* | GetPolyTex (int mipmap) Get the polytexture (lighted texture) with a given mipmap level (0, 1, 2 or 3)
  virtual int | GetTextureType () Return a type for the kind of texturing used.
  void | SetUniformDynLight (CLights* l) Set the uniform dynamic light
  void | Setup (csPolygon3D* poly3d, csTextureHandle* txtMM) Setup for the given polygon and texture.

### Private Fields

  csLightMap* | lightmap The light-map for this polygon.
  csLightMap* | lightmap1 The light-map for this polygon (mipmap level 1)
  csLightMap* | lightmap2 The light-map for this polygon (mipmap level 2)
  csLightMap* | lightmap3 The light-map for this polygon (mipmap level 3)
  bool | lightmap_up_to_date This bool indicates if the lightmap is up-to-date (read from the cache)
  csPolyTexture* | tex The textures and lightmaps for the four mipmap levels
  csPolyTexture* | tex1 A mipmapped texture: one step further.
  csPolyTexture* | tex2 A mipmapped texture: two steps further.
  csPolyTexture* | tex3 A mipmapped texture: three steps further.
  CLights* | theDynLight A uniform dynamic light for this poly

### Private Methods

  | csLightMapped () Constructor.
  virtual | ~csLightMapped () Destructor.

### Inherited from csPolygonTextureType:

## Documentation

> Texture class for lightmapped polygons

`csPolyTexture* tex`
  The textures and lightmaps for the four mipmap levels. The transformed texture for this polygon.

`csPolyTexture* tex1`
  A mipmapped texture: one step further.

`csPolyTexture* tex2`
  A mipmapped texture: two steps further.

`csPolyTexture* tex3`
  A mipmapped texture: three steps further.

`csLightMap* lightmap`
  The light-map for this polygon.

`csLightMap* lightmap1`
  The light-map for this polygon (mipmap level 1)

`csLightMap* lightmap2`
  The light-map for this polygon (mipmap level 2)

`csLightMap* lightmap3`
  The light-map for this polygon (mipmap level 3)

`bool lightmap_up_to_date`
  This bool indicates if the lightmap is up-to-date (read from the cache). If set to false the polygon still needs to be recalculated.

`CLights* theDynLight`
  A uniform dynamic light for this poly. This is used for flashing the polygon in a uniform way (unlike positional dynamic lights).

`csLightMapped()`
  Constructor.

`virtual ~csLightMapped()`
  Destructor.

`void Setup(csPolygon3D* poly3d, csTextureHandle* txtMM)`
  Setup for the given polygon and texture.

`virtual int GetTextureType()`
  Return a type for the kind of texturing used.

`csPolyTexture* GetPolyTex(int mipmap)`
  Get the polytexture (lighted texture) with a given mipmap level (0, 1, 2 or 3)

`csLightMap* GetLightMap()`
  Get the lightmap belonging with this polygon

`void SetUniformDynLight(CLights* l)`
  Set the uniform dynamic light

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de