natiny_mesh_get_animation

C
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

C
NatinyAnimation first = natiny_mesh_get_animation(hero_mesh, 0);