Function waterdraw
#include <macawlevel.h>void waterdraw(
int level,
int i,
const levelcam *cam,
double t,
const char *how
);
Draws a water surface, with ripples and its reflection mixed in. Call it after you've drawn the level, with the same camera.
Parameters
levelint- The level the water's in.
iint- Which water, from 0.
camconst levelcam *- The camera you're looking from, a
levelcam. tdouble- The time in seconds, which moves the ripples and drips (
now()will do). howconst char *- NULL for the live reflection if there is one,
"plain"for just the surface, or"baked"for the baked one.
In Water, with watercount, newwater, waterinfo, waterreflect, waterbake, waterbaked, waterreflections, watercamera.