RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwSetMaterialColorStruct(RwMaterial *material, RwRGBColor *color);

Description

Sets the material‘s color.

Arguments

material Pointer to the material.

color Pointer to the color.

Return Value

The argument material if successful, and NULL otherwise.

Comments

This function is identical to RwSetMaterialColor() 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. This can be useful as a call-back in RwForAll…() functions.

See Also

RwGetMaterialColor()

RwSetMaterialColor()

RwSetPolygonColor()

RwSetPolygonColorStruct()

RwSetSurfaceColor()