Function newcube
#include <macaw3d.h>int newcube(int texture, double tiles);
Makes a cube 2 units across, from -1 to 1 each way around its position. Use scale3d to change its size.
Parameters
textureint- The picture to cover it with. 0: plain light grey.
tilesdouble- How many times the texture repeats across each face. 0 or less: once.
Returns int
The new cube's number.
In Shapes, terrain and models, with newsphere, newcylinder, newcone, newplane, newterrain, newterrainfn, newmesh, newmodel, newsprite, newpivot.