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,closeand more- Drawing
cls,pset,pget,line,rect,rectfilland 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,drawpictureand more- Sprites and the map
spr,sprex,sspr,fget,fset,mapand more- Sprites as pictures
sprimage,spritesheet- Maps made elsewhere
importmap,importmapimage,imap_layers,imap_layername,imap_size,imap_getand more