Function levellightdata
#include <macawlevel.h>int levellightdata(int level, void *buf, int size);
Gives a level's baked light as bytes, to save in its .lit file. Call it with NULL first to find out how big a buffer you need.
Parameters
levelint- The level.
bufvoid *- Where the bytes go, or NULL to only ask how many there are.
sizeint- How many bytes
bufholds; no more than that are written.
Returns int
How many bytes there are in all, or 0 if the level isn't baked.
In Baking light and the built level, with levelbake, levelbakestep, levelsetlight, levelunbake, levelsetsky, levelfacecount, levelface, levelstat.