RenderWare V2.1

Previous Page Index Next Page

RwPolygon3d *

RwSetPolygonAmbientRGBStruct(RwPolygon3d *poly, RwRGBColor *rgb)

RwPolygon3d *

RwSetPolygonAmbientRGB(RwPolygon3d *poly, RwReal red, RwReal green, RwReal blue)

Description

Sets the ambient RGB surface properties of the polygon.

Arguments

poly Pointer to the polygon.

rgb pointer to the RwRGBColor that contains the surface properties.

Return Value

The argument poly if successful, and NULL otherwise.

See Also

RwGetMaterialAmbientRGB()

RwGetMaterialDiffuseRGB()

RwGetMaterialSpecularRGB()

RwSetMaterialAmbientRGB()

RwSetMaterialDiffuseRGB()

RwSetMaterialSpecularRGB()

RwGetPolygonDiffuseRGB()

RwGetPolygonSpecularRGB()

RwGetPolygonAmbientRGB()

RwSetPolygonDiffuseRGB()

RwSetPolygonSpecularRGB()