Macaw OS C reference

Module Lamps, fog and lines

#include <macaw3d.h>

Functions

pointlight3d
Sets one of the eight lamps for meshes, which lights things near it, fading out at its radius.
fog3d
Adds fog to meshes, so far-off things fade into a colour.
nofog3d
Turns the fog off again.
project3d
Works out where a place in the world shows up in the picture, seen through camera3d's camera.
line3d
Draws a line between two places in the world, seen through camera3d's camera, over the picture.
stats3d
Finds out how much 3D drawing there was this frame, for checking your program's speed.