natiny_mesh_get_bone_count
uint32_t natiny_mesh_get_bone_count(NatinyMesh mesh);
Returns how many joints the mesh's skeleton has.
Parameters
| Name | Type | Description |
|---|---|---|
mesh |
NatinyMesh |
Mesh handle |
Returns
| Type | Description |
|---|---|
uint32_t |
Joint count; 0 when the mesh has no skeleton or the handle is invalid |
Example
uint32_t bones = natiny_mesh_get_bone_count(hero_mesh);