World Manager
C4Lights.h

class Light

The Light class represents a light node in a scene graph.
Definition

class Light : public Node

Member Functions
Light::GetLightType Returns the specific type of a light.
Light::GetBaseLightType Returns the base type of a light.
Constructor

Light(LightType type, LightType base);

The constructor has protected access. A Light class can only exist as the base class for a more specific type of light.
Parameters
type The type of the light source. See below for a list of possible types.
base The base type of the light source. This should be kLightInfinite or kLightPoint.
Description


kLightInfinite Infinite light.
kLightDepth Infinite light with a shadow map.
kLightPoint Point light.
kLightCube Point light with a projected cube shadow texture.
kLightSpot Spot light with a projected 2D shadow texture.
Base Classes
Node A Light node is a scene graph node.
See Also
LightObject