Macaw OS C reference

3D

#include <macaw3d.h>

These calls come from #include <macaw3d.h>. Each thing in a scene (a camera, a light, a cube, a terrain) is a number, and 0 means none. There are two ways to do 3D: make a scene once and let render() draw it every frame, or make meshes and draw them yourself with your own camera. The 3D page explains both, and C shows how Lua's calls become C ones.

Modules

Making things
newcamera, newlight
Shapes, terrain and models
newcube, newsphere, newcylinder, newcone, newplane, newterrain and more
What every thing can do
position3d, move3d, translate3d, rotate3d, turn3d, point3d and more
Cameras
fov3d, clscolor3d, camfog3d, camproject3d, campick3d
The scene
render, updateworld, collisions, resetcollisions, pick, ambient and more
Meshes you draw yourself
clear3d, camera3d, light3d
Lamps, fog and lines
pointlight3d, fog3d, nofog3d, project3d, line3d, stats3d
Making meshes
cube3d, cube3dsides, room3d, loadobj, mesh3d
Drawing meshes
billboard3d, drawmesh, drawmeshm, meshtexture, meshsize, freemesh
Textures
loadtexture
The graphics card
glrpresent, cubemaps, glrvram, glrinfotext, glrinfonumber