SFML community forums
Help => Graphics => Topic started by: Anasky on October 19, 2014, 03:24:36 pm
-
Hey everyone,
I've implemented SFML into my OpenGL application just now (still using the OpenGL rendering method).
I was wondering if it'd be possible to render gif images with SFML, and have them animated. And if it's possible, if there's a tutorial out there on how to implement them?
Thanks in advance :)
Anasky
-
SFML can only load the first frame of GIF images. So you cannot use an existing animated GIF as-is.
If you need animations, you should store the images separately (can be multiple images in one texture or file). By the way, I've written some classes in my library Thor (http://www.bromeon.ch/libraries/thor/v2.0/tutorial-animation.html) that simplify the process of animating, feel free to ask if you're interested :)
-
Thanks for the reply :)
Unfortunately not quite what I had hoped for though xD