IsMaterial()

Syntax

Result = IsMaterial(#Material)
Description
Tests if the given #Material is a valid and correctly initialized material.

This function is bullet-proof and can be used with any value. If the 'Result' is not zero then the object is valid and initialized, else it returns zero. This is the correct way to ensure that a material is ready to use.

Supported OS

Windows, Linux

<- FreeMaterial() - Material Index - MaterialAmbientColor() ->