C4 Engine
C4 Engine API Documentation

MaterialObject::CloneMaterialObject

Defined in:  C4MaterialObjects.h
Clones a material object.
Prototype

MaterialObject *CloneMaterialObject(voidconst;

Description
The CloneMaterialObject function makes a copy of a material object and returns a pointer to the duplicate material object. In addition to the material properties, each attribute belonging to the original material object is cloned and added to the attribute list for the new material object.