RenderWare V2.1

Previous Page Index Next Page

RwLight *

RwSetLightVector(RwLight *light, RwReal x, RwReal y, RwReal z);

Description

Sets the illumination vector of a directional or conical light source.

Arguments

light Pointer to the light.

x X component of the light vector.

y Y component of the light vector.

z Z component of the light vector.

Return Value

The argument light if successful, and NULL otherwise.

Comments

This function is only valid for directional and conical lights (those lights created with the light types rwDIRECTIONAL or rwCONICAL).

See Also

RwCreateLight()

RwGetLightType()

RwGetLightVector()

RwTransformLight()