<answer courtesy of Daniel Adler>
1. Allocate memory for the given size of the pixmap frame buffer.
2. Open a specific pixmap instance and give it the pointer of your
allocated memory
3. Write to the memory, and call update on the pixmap-object
example:
qcall lib/malloc,(640*480*4:buf)
qcall ave/avo/pix/32bit/open,(buf,640,480,640*4:pix)
cpy $FF000000,[buf]
ncall pix,update,(pix:-)
<c translation by Patrick Roberts - blame me if it's wrong ;P >
void *pix;
unsigned int *buf;
buf=(unsigned int *)malloc(640*480*4);
pix=ave_avo_pix_32bit_open((void *)buf,640,480,640*4);
*buf[0]=0xFF000000;
ave_update(pix);
artix |