Macaw OS C reference

Function meshsize

#include <macaw3d.h>
void meshsize(int mesh, int *corners, int *triangles);

Finds out how many corners and triangles a mesh has.

Parameters

meshint
The mesh's number.
cornersint *
Where to put how many corners it has: pass the address of an int, like &n (or NULL).
trianglesint *
Where to put how many triangles it has: the address of an int (or NULL).

In Drawing meshes, with billboard3d, drawmesh, drawmeshm, meshtexture, freemesh.