Re: Sprites and Animation



    Jan> Hi there, I'm porting a windows app to Linux, Using
    Jan> gtk+/imlib and (later) gnome. For this application I need to
    Jan> move smoothly some pixmaps loaded by imlib. What's the best
    Jan> way to do that?  Currently I wrote a little program (heavily
    Jan> based on Rasters imlib examples), that sets the background
    Jan> pixmap and then (in the event-loop) I set the
    Jan> background-pixmap again, clear the window and paste the
    Jan> sprite with gdk_imlib_paste_image. It's flickering like hell
    Jan> and the processor load goes to 100%. I'm sure there is a much
    Jan> better way to do things like that.

You can also try to use the GnomeAnimator widget if you have a CVS
version of gnome-libs.  It lets you load frames through Imlib, and
specify delay, size and X/Y offset for each of them independently.

-- 
Ettore



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