C4 Engine
C4 Engine API Documentation

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 Substance::GetNextRegisteredSubstance function on the returned object and continuing until nullptr is returned.
See Also

MaterialObject::GetLastRegisteredSubstance

MaterialObject::FindRegisteredSubstance

MaterialObject::RegisterSubstance

Substance::GetNextRegisteredSubstance