Macaw OS C reference

Function gpu_mask

#include <macawgpu.h>
void gpu_mask(int on);

While it's on, the triangles you draw don't show: they mark which pixels are water, for gpu_water.

Parameters

onint
1 to start marking, 0 to go back to drawing.

In Reflecting water, with gpu_clearmask, gpu_waterdefaults, gpu_water.