FreeMaterial()

Syntax

FreeMaterial(#Material)
Description
Frees the specified #Material. All its associated memory is released and this object can't be used anymore.

Parameters

#Material The material to free. If #PB_All is specified, all the remaining materials are freed.

Return value

None.

Remarks

All remaining materials are automatically freed when the program ends.

Supported OS

All

<- DisableMaterialLighting() - Material Index - GetMaterialAttribute() ->