Macaw OS C reference

Module Shapes, terrain and models

#include <macaw3d.h>

Functions

newcube
Makes a cube 2 units across, from -1 to 1 each way around its position.
newsphere
Makes a ball 2 units across (a radius of 1).
newcylinder
Makes a cylinder with a radius of 1, from y = -1 to y = 1.
newcone
Makes a cone with its point at y = 1 and a closed, round base of radius 1 at y = -1.
newplane
Makes a flat square 2 units across, lying at y = 0 and facing up.
newterrain
Makes hills from a picture.
newterrainfn
Makes hills like newterrain, but your own function works out how high each point is.
newmesh
Makes a thing with a shape of your own, built from triangles.
newmodel
Makes a thing from a model in an .obj file.
newsprite
Makes a flat picture that always turns to face the camera, for trees and people.
newpivot
Makes an empty, invisible thing.