RenderWare V2.1

Previous Page Index Next Page

RwReal

RwGetLightBrightness(RwLight *light);

Description

Retrieves the light’s brightness.

Arguments

light Pointer to the light.

Return Value

The brightness of the light if successful. Errors can be checked for using RwGetError().

Comments

If the light’s color has been previously set with a call to RwSetLightColor() then the value returned by RwGetLightBrightness() will be the average intensity of the red, green and blue channels of the light’s color.

See Also

RwCreateLight()

RwGetError()

RwSetLightBrightness()