C4 Engine
C4 Engine API Documentation

Geometry::SetMaterialCount

Defined in:  C4Geometries.h
Sets the number of material slots.
Prototype

void SetMaterialCount(int32 count);

Parameters
count The new number of material slots. This cannot be less than 1.
Description
The SetMaterialCount function sets the number of material slots allocated for a geometry to the number specified by the count parameter. If the new number of material slots is less than its previous value, then any material objects assigned to slots with indexes greater than or equal to count are released.
See Also

Geometry::GetMaterialCount

Geometry::GetMaterialObject

Geometry::SetMaterialObject