RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwSetMaterialDiffuseRGBStruct(RwMaterial *mat, RwRGBColor *rgb)

RwMaterial *

RwSetMaterialDiffuseRGB(RwMaterial *mat, RwReal red, RwReal green, RwReal blue)

Description

Sets the diffuse RGB surface properties of the material.

Arguments

mat Pointer to the material

rgb pointer to the RwRGBColor that contains the surface properties.

Return Value

The argument mat if successful, and NULL otherwise.

See Also

RwGetMaterialAmbientRGB()

RwGetMaterialSpecularRGB()

RwSetMaterialAmbientRGB()

RwGetMaterialDiffuseRGB()

RwSetMaterialSpecularRGB()

RwGetPolygonAmbientRGB()

RwGetPolygonDiffuseRGB()

RwGetPolygonSpecularRGB()

RwSetPolygonAmbientRGB()

RwSetPolygonDiffuseRGB()

RwSetPolygonSpecularRGB()