natiny_model_get_mesh

C
NatinyMesh natiny_model_get_mesh(NatinyModel model);

Returns the mesh this model places, as the handle natiny_model_set_mesh was given.

Parameters

Name Type Description
model NatinyModel Model handle

Returns

Type Description
NatinyMesh Mesh handle, or 0 when the model is empty or the handle is invalid

Example

C
NatinyMesh mesh = natiny_model_get_mesh(hero);