RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwGetPolygonMaterial(RwPolygon3d *polygon);

Description

Retrieves the polygon’s material.

Arguments

polygon Pointer to the polygon.

Return Value

Pointer to the polygon’s material if successful, and NULL otherwise.

Comments

Do not attempt to destroy the material returned by this function.

See Also

RwDestroyMaterial()

RwGetPolygonAmbient()

RwGetPolygonColor()

RwGetPolygonDiffuse()

RwGetPolygonGeometrySampling()

RwGetPolygonLightSampling()

RwGetPolygonOpacity()

RwGetPolygonSpecular()

RwGetPolygonTexture()

RwGetPolygonTextureModes()

RwSetPolygonMaterial()