Macaw OS C reference

Function leveladdbox

#include <macawlevel.h>
int leveladdbox(
    int level,
    double x0,
    double y0,
    double z0,
    double x1,
    double y1,
    double z1,
    const char **tex
);

Adds a box-shaped brush, from one corner to the opposite one. The corners can be given in either order.

Parameters

levelint
The level to add it to.
x0double
X of one corner.
y0double
Y of that corner.
z0double
Z of that corner.
x1double
X of the opposite corner.
y1double
Y of the opposite corner.
z1double
Z of the opposite corner.
texconst char **
An array of six texture names, one a face in the order above; NULL, or a NULL name, means "stone".

Returns int

The new brush's number, or -1 if a corner wasn't a proper number.

In Building from code: brushes, with levelbrushcount, leveladdshape, levelremovebrush, levelbrushbox, levelbrushtexture, levelbrushwater, levelbrushglow, levelbrushshine.