nanogui: Arrangement of memory in a PixMap


Previous by date: 24 Apr 2002 08:11:23 -0000 Fw:sos!, nanogui-subscribe
Next by date: 24 Apr 2002 08:11:23 -0000 Antwort: [nanogui] Arrangement of memory in a PixMap, "Heinz =?iso-8859-1?Q?H=E4berle?="
Previous in thread:
Next in thread: 24 Apr 2002 08:11:23 -0000 Re: Arrangement of memory in a PixMap, Jordan Crouse

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 


Previous by date: 24 Apr 2002 08:11:23 -0000 Fw:sos!, nanogui-subscribe
Next by date: 24 Apr 2002 08:11:23 -0000 Antwort: [nanogui] Arrangement of memory in a PixMap, "Heinz =?iso-8859-1?Q?H=E4berle?="
Previous in thread:
Next in thread: 24 Apr 2002 08:11:23 -0000 Re: Arrangement of memory in a PixMap, Jordan Crouse


Powered by ezmlm-browse 0.20.