mtl_create()

Creates a material. Objects created this way are automatically deleted on closing the engine, or by calling the ptr_remove function.

Returns:

Pointer to the material.

Speed:

slow

Example:

MATERIAL* mtl_dummy;

//...
mtl_dummy = mtl_create();
mtl_dummy.ambient_blue = 255;

See also:

material ► latest version online