In file include/csengine/rview.h:

## class csLightView

> This structure represents all information needed for static lighting

### Public Fields

  csLightingFunc* | callback A callback function
  void* | callback_data Userdata belonging to the callback.
  bool | dynamic If this structure is used for dynamic light frustrum calculation then this flag is true
  bool | gouraud_color_reset If 'true' then the gouraud vertices need to be initialized (set to black) first
  bool | gouraud_only If only gouraud shading should be updated then this flag is true
  csLight* | l The light that we're processing.
  csFrustrum* | light_frustrum The frustrum for the light
  bool | mirror If space is mirrored.
  float | r The current color of the light
  csFrustrumList | shadows The list of shadow frustrums

### Public Methods

  | csLightView ()
  | ~csLightView ()

## Documentation

> This structure represents all information needed for static lighting. It is the basic information block that is passed between the various static lighting routines.

`csLight* l`
  The light that we're processing.

`float r`
  The current color of the light. Initially this is the same as the light in csStatLight but portals may change this.

`bool mirror`
  If space is mirrored.

`bool dynamic`
  If this structure is used for dynamic light frustrum calculation then this flag is true

`bool gouraud_only`
  If only gouraud shading should be updated then this flag is true

`bool gouraud_color_reset`
  If 'true' then the gouraud vertices need to be initialized (set to black) first. Only the parent PolygonSet of a polygon can know this because it is calculated using the current_light_frame_number.

`csFrustrum* light_frustrum`
  The frustrum for the light. Everthing that falls in this frustrum is lit unless it also is in a shadow frustrum.

`csFrustrumList shadows`
  The list of shadow frustrums. Note that this list will be expanded with every traversal through a portal but it needs to be restored to original state again before returning.

`csLightingFunc* callback`
  A callback function. If this is set then no actual lighting is done. Instead the callback function is called.

`void* callback_data`
  Userdata belonging to the callback.

`csLightView()`

`~csLightView()`

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