mtl_remove(MATERIAL*)

Removes a MATERIAL and its effects or shaders. All pointers to the MATERIAL become invalid. Materials that are not removed by this function will automatically be removed at program exit.

Parameters:

MATERIAL* - MATERIAL pointer to be removed.

Speed:

medium

Example:

mtl_remove(my_material);

See also:

mtl_create