I would like to be able to load GIF animations instead of using sprite sheets and grids in a game I am working on. I believe this will make what I do much easier than now. I've looked it up on Google, but all I found was a library which uses Win32 calls; ergo restricted to Windows. I believe I can do the job if I figure out how I can extract the individual frames and delay values from an animated GIF. As the title says, I am using SDL2 to load my sprites.
Any kind of help is appreciated.
Thanks in advance.
Edit: Oh and I am using C++.