C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

Light::GetLightType

Defined in:  C4Lights.h
Returns the specific type of a light.
Prototype

LightType GetLightType(voidconst;

Description
The GetLightType function returns the specific light type, which may be one of the following values.
kLightInfinite An infinite light.
kLightDepth An infinite light with a shadow map.
kLightLandscape An infinite light with a large-scale multi-resolution shadow map.
kLightPoint A point light.
kLightCube A point light with a projected cube shadow texture.
kLightSpot A spot light with a projected 2D shadow texture.
All of the light types are divided into two categories, and the general category that a light object falls into can be determined by calling the Light::GetBaseLightType function.
See Also

Light::GetBaseLightType