Macaw OS C reference

Function waterinfo

#include <macawlevel.h>
void waterinfo(
    int level,
    int i,
    double *x0,
    double *z0,
    double *x1,
    double *z1,
    double *y
);

Gives where a water surface is.

Parameters

levelint
The level it's in.
iint
Which water, from 0.
x0double *
The address of a double for its smallest x, or NULL.
z0double *
The address of a double for its smallest z, or NULL.
x1double *
The address of a double for its largest x, or NULL.
z1double *
The address of a double for its largest z, or NULL.
ydouble *
The address of a double for its height, or NULL.

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