Macaw OS C reference

Function newsprite

#include <macaw3d.h>
int newsprite(int picture, double height);

Makes a flat picture that always turns to face the camera, for trees and people. Its bottom middle stands at its position, and its width follows the picture's shape. Colour 0 in the picture is see-through.

Parameters

pictureint
The picture to show.
heightdouble
How tall it is, in world units. 0 or less: 1.

Returns int

The new sprite's number.

In Shapes, terrain and models, with newcube, newsphere, newcylinder, newcone, newplane, newterrain, newterrainfn, newmesh, newmodel, newpivot.