Re: How to enable animation in GTK 2 application ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For most animations the function that you need is g_timeout_add() that makes the main loop of gtk/glib call a function of your choice after a certain interval (the animation step). By returning true from this function, the function will be called again after the same interval. Depending on what kind of animation you want to do, you can do several different things in the timeout callback function:
This might be enough for your needs, though in your question it sounds like e.g. you want to do user interface animations, which is a totally different story.

Regards,
Dov


2009/6/5 Rohit Jain <rohit.jain@xxxxxxxxxxxxxxx>
Dear Friends,

Im working on a game application which needs a funky look and few animations in it. Im new to GTK and learning it from online tutorial posted on gtk.org site. There they haven't mentioned anything about animating windows or frames or even special effects just like the one in gnome desktop project.

How do i give special effects and animations to this game without requiring more processing speeds n huge memories?

--
Regards,
Rohit Jain

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux