Re: Sprites and Animation
- From: Ettore Perazzoli <ettore comm2000 it>
- To: Jan Kellmer <a36 informatik hs-bremen de>
- Cc: gnome-list gnome org, gtk-list redhat com
- Subject: Re: Sprites and Animation
- Date: 22 Oct 1998 18:52:09 +0200
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]