natiny_material_get_instanced

C
bool natiny_material_get_instanced(NatinyMaterial material);

Returns whether the material has its instanced forms and can draw many copies of a mesh in one draw call.

Parameters

Name Type Description
material NatinyMaterial Material handle from natiny_material_create

Returns

Type Description
bool true after a successful natiny_material_set_instanced; false for an invalid handle

Example

C
if (!natiny_material_get_instanced(material))
    natiny_material_set_instanced(material, true);