C4 Engine Terathon Software C4 Engine API Documentation

• Graphics Manager

API Links
Developer Links

MaterialObject::GetFirstRegisteredSubstance

Defined in:  C4MaterialObjects.h
Returns the first registered substance.
Prototype

static const Substance *GetFirstRegisteredSubstance(void);

Description
The GetFirstRegisteredSubstance function returns a pointer to the Substance object corresponding to the first registered substance type. The entire list of registered substances can be iterated by calling the MapElement::Next function on the returned object and continuing until nullptr is returned.
See Also

MaterialObject::FindRegisteredSubstance

MaterialObject::RegisterSubstance

Substance