Reading animated GIFs SDL 2

若如初见. 提交于 2020-01-04 02:07:07

问题


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++.

来源:https://stackoverflow.com/questions/22708336/reading-animated-gifs-sdl-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!