Re: Real double-buffering
- From: Havoc Pennington <hp redhat com>
- To: dickrp cc40367-a ewndsr1 nj home com
- Cc: gtk-list gnome org
- Subject: Re: Real double-buffering
- Date: 06 Aug 2000 23:03:53 -0400
> I'm using the following:
> I need to display animated 24-bit data to a ViewPort. I'm using
> GdkRGB for speed. When I run my application and click a button in the
> viewport, the image changes quickly. However, it is painted in
> chunks, starting at the upper-left of the window and finishing at the
> lower-right of the window. Although the data copies quickly enough
> for my purposes, the window contents do not change instantly. I want
> to be able to double-buffer. By this I mean swapping buffers (usually
> this reduces to a pointer swap), not copying a large quantity of data.
> Is this possible with Gdk?
No if you don't want to copy data then you probably want to use
GtkGLArea or the like, OpenGL supports that.
With regular X drawing all you can really do is draw to a pixmap first
then copy the pixmap to the screen, that should happen without
] [Thread Prev