Function screenmem
#include <macaw.h>int screenmem(void);
Gives you the address of your window's picture in memory, so you can write pixels into it directly. Each pixel is one byte holding its colour: the pixel at x, y is at the address plus y * screenwidth() + x.
Parameters
It takes nothing.
Returns int
The address. Turn it into a pointer with (unsigned char *)screenmem().
In The window's memory, with screenwidth, screenheight.