Function cube3dsides
#include <macaw3d.h>int cube3dsides(
double w,
double h,
double d,
int sides,
int top,
int bottom,
double tiles
);
Makes a box mesh like cube3d, with different pictures on its sides, top and bottom.
Parameters
wdouble- How wide it is across x, in world units.
hdouble- How tall it is.
ddouble- How deep it is along z.
sidesint- The picture on its four sides.
topint- The picture on top. 0: the sides' picture.
bottomint- The picture underneath. 0: the top's picture.
tilesdouble- How many times the textures repeat across each face. 0: once for every unit. Less than 0: once a face.
Returns int
The new mesh's number.
In Making meshes, with cube3d, room3d, loadobj, mesh3d.