RenderWare V2.1

Previous Page Index Next Page

RwPolygon3d *

RwSetPolygonMaterial(RwPolygon3d *polygon, RwMaterial *material);

Description

Sets the polygon’s 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 polygon’s previous material’s only reference was the polygon itself then the material will be destroyed by this function.

See Also

RwGetPolygonMaterial()

RwSetPolygonAmbient()

RwSetPolygonColor()

RwSetPolygonColorStruct()

RwSetPolygonDiffuse()

RwSetPolygonGeometrySampling()

RwSetPolygonLightSampling()

RwSetPolygonOpacity()

RwSetPolygonSpecular()

RwSetPolygonSurface()

RwSetPolygonTexture()

RwSetPolygonTextureModes()