Re: gdk pixbufs, rgbbufs, efficiency, painting onto them
- From: John Cupitt <jcupitt gmail com>
- To: cali <calculus softhome net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gdk pixbufs, rgbbufs, efficiency, painting onto them
- Date: Tue, 30 Nov 2004 10:56:53 +0000
Hi,
On Mon, 29 Nov 2004 20:40:23 -0000, cali <calculus softhome net> wrote:
Another problem I face is that I can't find any plotting routines for a
gchar buffer, does anybody know any decent ones?
Have you tried gdk_draw_rgb_image() and gdk_draw_gray_image()? They
draw an RGB or greyscale buffer to the screen as quickly as possible.
On my (rather modest) machine with no h/w accelleration I get >30
megapixels / sec. There's a benchmark program in
gtk+-2.4.x/tests/testrgb.
I find it really strange that GTK doesn't provide a drawable surface that
also allows direct access to pixel values, i.e for maximum client side
efficiency, I mean, I don't need any of this server side stuff.
GTK is (fairly) portable, so its drawing functions have to be quite
high-level. As another poster said, ogl is probably a better API for
fast graphics. There's a GTK widget which displays an ogl surface in a
window.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]