nanogui: Arrangement of memory in a PixMap
Subject:
Arrangement of memory in a PixMap
From:
Simon Wood ####@####.####
Date:
24 Apr 2002 08:11:23 -0000
Message-Id: <44632C76B97BD211AF6B00805FADCAB208790C73@exchange.saltaire.pace.co.uk>
I'm in the process of porting a (GPL'ed) GameBoy emulator to nano-x, but
their system uses a framebuffer concept to write directly into buffer.
I thought the best way would be to generate a PixMap with
image = GrNewPixmap(x_width, x_height, image_addr);
and then passing the image_addr to their fb routines. At the end of each
'screen creation' I would then do a copy
GrCopyArea(x_win, gc1, 0, 0, x_width, x_height, image, 0, 0, 0);
questions for the list:
1). what's the memory arrangement of a PixMap (i.e. 8 bits R,G,B,A)?
2). am I approaching this is totally the wrong way?
3). anyone else interested in helping out?
Simon Wood