Macaw OS C reference

Function levelstat

#include <macawlevel.h>
double levelstat(int level, const char *name);

Gives a number about the built level, such as "faces", "leaves", "portals", "luxels" (patches of baked light), "baked" (1 if it's lit), "drawn" (faces drawn last time), "shiny" (shiny faces) or "probes" (cube maps it's been given).

Parameters

levelint
The level.
nameconst char *
The name of the number you want.

Returns double

That number, or 0 for a name there isn't.

In Baking light and the built level, with levelbake, levelbakestep, levellightdata, levelsetlight, levelunbake, levelsetsky, levelfacecount, levelface.