Macaw OS C reference

Function levelprobedata

#include <macawlevel.h>
int levelprobedata(int level, void *buf, int size);

Gives a level's baked probes as the bytes of a .prb file, for you to save. 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 buf holds; no more than that are written.

Returns int

How many bytes there are in all, or 0 if none of its probes is baked.

In Reflection probes, with bakeprobes, levelprobelimit, probecount, probeat, newprobe, probepos, probebake, probebaked, probeenv, levelsetprobes, applylevelprobes.