nanogui: Antwort: [nanogui] Arrangement of memory in a PixMap
Subject:
Antwort: [nanogui] Arrangement of memory in a PixMap
From:
"Heinz =?iso-8859-1?Q?H=E4berle?=" ####@####.####
Date:
24 Apr 2002 08:21:30 -0000
Message-Id: <OFFEB7AA0E.819BBD07-ONC1256BA5.002D1127@LocalDomain>
Wasn't there anything like a framebuffer as a winow in nano-x?
Simon Wood
####@####.#### An: "Nanogui (E-mail)" ####@####.####
Kopie:
24.04.02 10:02 Thema: [nanogui] Arrangement of memory in a PixMap
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
---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####