Re: Double Buffering
2006/11/9, Matthew Yaconis <[EMAIL PROTECTED]>: > I'm looking to do some double buffered 2D animation in a GTK application. > What is the best way to go about this? Are there double buffered GTK > widgets or would I be better off using OpenGL or some other libraries? Gtk+ is double buffered (at GDK level), see federico's great doc: http://primates.ximian.com/~federico/misc/gtk-drawing-model/index.html cheers -- Gian Mario Tagliaretti http://www.parafernalia.org/pygtk/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Double Buffering
I tried searching the mailing list but the search seems to still be down from July... I'm looking to do some double buffered 2D animation in a GTK application. What is the best way to go about this? Are there double buffered GTK widgets or would I be better off using OpenGL or some other libraries? Thanks for any help. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How can I disable double-buffering? or How can I draw in a drawable immediately?
I am trying to write a function that draws stuff in a drawingarea immediately. I want the images to be drawn directly when I call the function. What I am trying to make is something like this: void main_function(...) //called directly after program start {... My_drawing_function(...); //the image displayed in the drawingarea has changed getchar(); ... //exit program } I figured the problem comes from the double-buffering and I tried to disable it using: GTK_WIDGET_UNSET_FLAGS (window1,GTK_DOUBLE_BUFFERED); But it didn't work. So how can I disable double-buffering? Or if the problem is coming from something else, where is it? Regards, Zoidberg __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Does double buffering work on Microsoft Windows?
Does double buffering work on Microsoft Windows? I'm developing an application with rather complicated interface which require a lot of switching of GtkNotebook pages. I've designed this interface in Glade and use libglademm and gtkmm (C++). On my Fedora Core 4 Linux using GTK+ 2.6.10 and GTKmm 2.6.2 there is no flicker when swithing notebook pages. On Windows XP Professional using GTK+ 2.8.6 from http://gladewin32.sourceforge.net/ and GTKmm 2.8.1 from http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ there is a lot of flicker when I switch pages - I can almost see how pages are build. I've checked if my window does have double buffering set - it has. According to documentation this is by default. So why flicker? Regards Tometzky -- ...although Eating Honey was a very good thing to do, there was a moment just before you began to eat it which was better than when you were... Winnie the Pooh ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Double Buffering
Hi i was wanting to highlight a portion of an image just by clicking and dragging over it. When i drew directly on the image there was a lot of flickering. So now i always draw to a offscreen pixmap and then display that pixmap. It works nicely and there is no flickering. The problem is that i draw and show the pixmap on motion_notify event and hence for large pictures like 600 * 400 my system starts to go really slow and it looks awfull. Could anyone please help me out. Thanks Abhishek Samuel _ Screensavers unlimited! http://www.msn.co.in/Download/screensaver/ Download now! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list