RenderWare V2.1

Previous Page Index Next Page

RwBool

RwSetSurfaceColor(RwReal r, RwReal g, RwReal b);

Description

Sets the current material’s color.

Arguments

r Red component of the color, in the range CREAL(0.0) to CREAL(1.0).

g Green component of the color, in the range CREAL(0.0) to CREAL(1.0).

b Blue component of the color, in the range CREAL(0.0) to CREAL(1.0).

Return Value

TRUE if successful, and FALSE otherwise.

Comments

This function can only be called within the context of an RwModelBegin()RwModelEnd() block.

See Also

RwModelBegin()

RwModelEnd()

RwSetMaterialColor()

RwSetMaterialColorStruct()

RwSetPolygonColor()

RwSetPolygonColorStruct()