As a follow up to Matthias's note, I'd say that add_timeout() is probably the way to go for simple animations. Then for more complex situations you do need to be looking at mutli-threading...
On 18 Mar 2007, at 20:57, Maximilian Matthé wrote: > So how should one do a simple animation in fltk? possibly I could also > use OpenGL to disply it, but that seems a bit overkill to me for this > simple 2D-animation :) Why would GL be inappropriate for a 2D situation? It may be the most efficient solution - with modern drivers the GL implementations often make much more effective use of the capability of the graphics chip, so are faster and put much less load on the CPU for any given scene, even if it is just 2D. Always worth considering - but you would need to test your specific needs to see what really is the best for your problem. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

