C4 Engine Terathon Software C4 Engine API Documentation

• Graphics Manager

API Links
Developer Links

MaterialObject::GetFirstAttribute

Defined in:  C4MaterialObjects.h
Returns a pointer to the first material attribute.
Prototype

Attribute *GetFirstAttribute(voidconst;

Description
The GetFirstAttribute function returns a pointer to the first attribute belonging to a material object. If the material object contains no attributes, then the return value is nullptr. The ListElement::Next function can be used to iterate through all of the attributes belonging to a material object.
See Also

Attribute

MaterialObject::GetAttributeList

MaterialObject::AddAttribute

MaterialObject::PurgeAttributes