Macaw OS C reference

Function probebake

#include <macawlevel.h>
int probebake(int probe, levelviewfn draw, void *user, int level);

Bakes a probe, drawing one of its six views each call. Keep calling it until it returns 1.

Parameters

probeint
The probe's number.
drawlevelviewfn
Your function that draws each view, or NULL to draw just level.
uservoid *
Any pointer you like, passed to draw as its user; NULL is fine.
levelint
A built level to find the walls round the probe in (and to draw if draw is NULL), or 0 for none.

Returns int

1 once it's done (or it can't be baked), or 0 while there are views left.

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