Function newsphere
#include <macaw3d.h>int newsphere(int segments, int texture);
Makes a ball 2 units across (a radius of 1).
Parameters
segmentsint- How many bands it has from top to bottom, with twice as many round it. 0 or less: 12.
textureint- The picture to wrap round it. 0: plain light grey.
Returns int
The new ball's number.
In Shapes, terrain and models, with newcube, newcylinder, newcone, newplane, newterrain, newterrainfn, newmesh, newmodel, newsprite, newpivot.