natiny_mesh_get_animation
NatinyAnimation natiny_mesh_get_animation(NatinyMesh mesh, uint32_t index);
Returns one of the clips the file carried, by index.
Parameters
| Name | Type | Description |
|---|---|---|
mesh |
NatinyMesh |
Mesh handle |
index |
uint32_t |
Zero-based clip index |
Returns
| Type | Description |
|---|---|
NatinyAnimation |
Animation handle, or 0 past the end |
Example
NatinyAnimation first = natiny_mesh_get_animation(hero_mesh, 0);