![]() |
• World Manager | ||||
|
API Links
Developer Links
|
Geometry::SetMaterialObjectDefined in:
Sets a material object.
C4Geometries.hPrototype
Parameters
Description
The SetMaterialObject function assigns the material object specified by the object parameter to a geometry node in the material slot specified by the index parameter. If object is nullptr, then the geometry node does not have a material in the specified material slot after this function is called. Otherwise, the reference count of the material object is incremented, and the new material object is assigned to the geometry node. The reference count of any material object previously assigned to the geometry node in the same slot is decremented, and the old material object is deleted if its reference count reaches zero.The number of material slots can be determined using the Geometry::GetMaterialCount function.
See Also
|