RenderWare V2.1

Previous Page Index Next Page

RwBool

RwDestroyMaterial(RwMaterial *material);

Description

Destroys the material.

Arguments

material Pointer to the material.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

This function must not be used to destroy a polygon’s material (as obtained by a call to RwGetPolygonMaterial()), or a material from the material stack (as obtained by RwCurrentMaterial(), RwPopCurrentMaterial() or RwPushCurrentMaterial()).

See Also

RwCreateMaterial()

RwDuplicateMaterial()

RwGetPolygonMaterial()

RwPopCurrentMaterial()

RwPushCurrentMaterial()