C4 Engine Terathon Software C4 Engine API Documentation

• Graphics Manager

API Links
Developer Links

class SpotLightObject

Defined in:  C4LightObjects.h
The SpotLightObject class encapsulates data pertaining to a spot light source having a projected 2D texture map.
Definition

class SpotLightObject : public ShadowLightObject

Member Functions
SpotLightObject::GetApexTangent Returns the tangent of half the apex angle for a spot light.
SpotLightObject::SetApexTangent Sets the tangent of half the apex angle for a spot light.
Constructor

SpotLightObject(const ColorRGB& color, float range, float apex, const char *name);

Parameters
color The color of light emitted by the light source.
range The spherical range of the light source.
apex The tangent of half the apex angle for the spot light. This determines the light's angle of illumination.
name The name of the projected shadow texture map.
Description
Base Classes
ShadowLightObject A SpotLightObject is a specific type of ShadowLightObject.
See Also

SpotLight