RE: Deconstructing animations



> > Right, but it results in an infinite resolution series of frames. 
> > i.e. I believe the format has things like "move sprite from 
> point A to
> > point B over N seconds"
> > 
> 
> Well, GdkPixbufAnimationIter certainly doesn't give me "infinite
> resolution". It's resolution is limited to 1frame/ms since 
> the delay is 
> reported as an integral number of milliseconds. Anyway, I 
> think it would
> be more useful to discuss the concrete api proposal I have made: lets
> add
> 
> gint
> gdk_animation_iter_get_loop (GdkPixbufAnimationIter *iter);
> 
> which would return how many complete loops the iter has already made
> over the animation. You may object that one can conceive 
> implementation
> of GdkPixbufAnimation which produce an infinite number of 
> frames without
> ever repeating one...but in that case, it would be fine to 
> just return 0
> forever. Anybody harvesting frames from an animation would 
> certainly be
> sane enough to stop after having collected a few hours worth of frames
> without coming to the end of the first loop...

This would really help (knowing how many frames there were to the
animation).  I have reported a bug regarding the main problem I face with my
application using the GdkPixbufAnimation API here:
http://bugzilla.gnome.org/show_bug.cgi?id=116331

Regards,
Martyn



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