natiny_mesh_get_bone_name
C
const char* natiny_mesh_get_bone_name(NatinyMesh mesh, uint32_t index);
Returns the name of one joint, which is the name
natiny_model_get_bone and
natiny_animator_set_mask look up.
Parameters
| Name |
Type |
Description |
mesh |
NatinyMesh |
Mesh handle |
index |
uint32_t |
Zero-based joint index |
Returns
| Type |
Description |
const char* |
Null-terminated name owned by the mesh, or NULL past the end |
Example
C
const char* root = natiny_mesh_get_bone_name(hero_mesh, 0);
Notes
- The string belongs to the mesh and is valid until it is destroyed or
reloaded.