Macaw OS C reference

Function watercount

#include <macawlevel.h>
int watercount(int level);

Tells you how many water surfaces a level has to draw: those built from its water brushes, and any you've added with newwater.

Parameters

levelint
The level to ask about.

Returns int

How many water surfaces there are (they count from 0).

In Water, with newwater, waterinfo, waterreflect, waterdraw, waterbake, waterbaked, waterreflections, watercamera.