Macaw OS C reference

Function room3d

#include <macaw3d.h>
int room3d(
    double w,
    double h,
    double d,
    int floor,
    int walls,
    int ceiling,
    double tiles
);

Makes the inside of a box, for standing in. It's centred on 0, 0, 0, so its floor is at y = -h / 2.

Parameters

wdouble
How wide it is across x, in world units.
hdouble
How tall it is.
ddouble
How deep it is along z.
floorint
The floor's picture.
wallsint
The walls' picture.
ceilingint
The ceiling's picture. 0: the walls' picture.
tilesdouble
How many times the textures repeat across each face. 0 or less: once for every unit.

Returns int

The new mesh's number.

In Making meshes, with cube3d, cube3dsides, loadobj, mesh3d.