RwSetPolygonMaterial(RwPolygon3d *polygon, RwMaterial *material);
Description
Sets the polygons material to a reference to material material.
Arguments
polygon Pointer to the polygon.
material Pointer to the material.
Return Value
The argument polygon if successful, and NULL otherwise.
Comments
If the polygons previous materials only reference was the polygon itself then the material will be destroyed by this function.
See Also