Skip to main content

object_set_material

Function object_set_material 

Source
pub unsafe fn object_set_material(
    object: *mut IObject,
    material_index: u32,
    model: i32,
    texture_library: StringView,
    texture_name: StringView,
    colour: Colour,
)
Expand description

void IBaseObject::setMaterial(uint32_t, int, StringView, StringView, Colour).

ยงSafety

object must be a live IObject.