nanogui: Multiple famebuffer


Previous by date: 16 Nov 2000 19:05:42 -0000 Re: Multiple famebuffer, KIM,KYOUNG-IL (HP-Cupertino,ex1)
Next by date: 16 Nov 2000 19:05:42 -0000 Limitation on small memory system, CCYau
Previous in thread: 16 Nov 2000 19:05:42 -0000 Re: Multiple famebuffer, KIM,KYOUNG-IL (HP-Cupertino,ex1)
Next in thread: 16 Nov 2000 19:05:42 -0000 Re: Multiple famebuffer, Marc Nijdam

Subject: Re: Multiple famebuffer
From: Jordan Crouse ####@####.####
Date: 16 Nov 2000 19:05:42 -0000
Message-Id: <3A1430C5.EB3543FF@censoft.com>

Ok, now I understand whats going on.  You want to double buffer your
screen, not display to multiple framebuffers.

Thats easy.  Just use GrNewPixmap() to create a offscreen "window" that
you can draw into, just like a real window.  Then, when you're ready,
use GrCopyArea to blit the pixmap area to the screen.  For example, here
I draw a rectangle in the pixmap and then put it on screen:

GR_WINDOW_ID foo = GrNewPixmap(15, 15, NULL);
GrSetGCForeground(gc, BLUE);
GrFillRect(foo, gc, 5,5, 5, 5);

GrCopyArea(GR_ROOT_WINDOW_ID, gc, 5, 5, 5, 5, foo, 0, 0, MW_SRCCOPY);
GrDestroyWindow(foo);

Hope that helps.  
Jordan


"KIM,KYOUNG-IL (HP-Cupertino,ex1)" wrote:
> 
> Thank you for advice.
> My question is if Microwindows can use double(triple) framebuffers
> and compare difference between buffers and update only difference
> into dispay buffer. I know there was discussions and I don't know
> how it gose now.
> 
> Thank you,
> Kyoung Kim
> 
> -----Original Message-----
> From: Alex Holden
> To: KIM,KYOUNG-IL (HP-Cupertino,ex1)
> Cc: ####@####.####
> Sent: 11/16/00 1:30 AM
> Subject: Re: Multiple famebuffer
> 
> On Wed, 15 Nov 2000, KIM,KYOUNG-IL (HP-Cupertino,ex1) wrote:
> > Can Microwindows(Win32 or Nono-X) handle multiple frame buffers ?
> 
> Not currently. There was some talk recently of adding support for
> multiple
> displays; try searching the mailing list archive if you're interested
> <http://www.linuxhacker.org/lists.phtml>
> 
> --
> ------- Alex Holden -------
> http://www.linuxhacker.org/
>  http://www.robogeeks.org/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

Previous by date: 16 Nov 2000 19:05:42 -0000 Re: Multiple famebuffer, KIM,KYOUNG-IL (HP-Cupertino,ex1)
Next by date: 16 Nov 2000 19:05:42 -0000 Limitation on small memory system, CCYau
Previous in thread: 16 Nov 2000 19:05:42 -0000 Re: Multiple famebuffer, KIM,KYOUNG-IL (HP-Cupertino,ex1)
Next in thread: 16 Nov 2000 19:05:42 -0000 Re: Multiple famebuffer, Marc Nijdam


Powered by ezmlm-browse 0.20.