RenderWare V2.1

Previous Page Index Next Page

RwRGBColor *

RwGetLightColor(RwLight *light, RwRGBColor *color);

Description

Retrieves the color of a light.

Arguments

light Pointer to the light.

color Pointer to the RwRGBColor that will receive the light’s color.

Return Value

The argument color if successful, and NULL otherwise.

Comments

If a light’s brightness has been previously set with RwSetLightBrightness() the red, green and blues channels of the color returned by RwGetLightColor() will be equal to the specified brightness.

See Also

RwSetLightColor()

RwSetLightColorStruct()

RwSetLightBrightness()