Macaw OS C reference

The window and drawing

#include <macaw.h>

These calls come from #include <macaw.h>. They open your window, draw into it, and work with pictures, sprites and maps. A picture is a number: 0 means there isn't one, and for drawinto it means the window itself. The Drawing chapter explains the Lua calls these are built on, and the C chapter shows how a C program fits together.

Modules

The window
window, realtime, windowscale, resizable, redraw, close and more
Drawing
cls, pset, pget, line, rect, rectfill and more
Colours
pal, palreset, drawpal, drawpalreset, nearestcolor
The window's memory
screenmem, screenwidth, screenheight
The screen
display_width, display_height, display_current, display_sizes, display_size, display_request
Pictures
newpicture, loadpicture, freepicture, picturewidth, pictureheight, drawpicture and more
Sprites and the map
spr, sprex, sspr, fget, fset, map and more
Sprites as pictures
sprimage, spritesheet
Maps made elsewhere
importmap, importmapimage, imap_layers, imap_layername, imap_size, imap_get and more