RenderWare V2.1

Previous Page Index Next Page

RwLight *

RwSetLightColorStruct(RwLight *light, RwRGBColor *color);

Description

Sets the color of a light.

Arguments

light Pointer to the light.

color Pointer to the color.

Return Value

The argument light if successful, and NULL otherwise.

Comments

The value returned by RwGetLightBrightness() for a light whose color has been set with RwSetLightColorStruct() is the average intensity of the red, green and blue channels of the light’s color.

This function is identical to RwSetLightColor() with the exception that it takes an RwRGBColor structure as the color specification rather than individual RwReals for the red, green and blue components of the color.

See Also

RwSetLightBrightness()

RwSetLightColor()

RwGetLightColor()