I need to use some animated GIF in my HB game written with OSLib, but I don't know how to do.
My question is: exist a library that allows me to implement animated GIF in my project?
tnx, and sorry for my bad english
GIF library
GIF library
For my PSP project, visit my web site: www.gefa.altervista.org
PaintMIXER v2.6.0 released: http://www.neoflash.com/forum/index.php ... 253.0.html
PaintMIXER v2.6.0 released: http://www.neoflash.com/forum/index.php ... 253.0.html
http://forums.ps2dev.org/viewtopic.php?t=10005
Toward the bottom I post giflib and a version of the cursortest program showing how to load and display an anigif.
Toward the bottom I post giflib and a version of the cursortest program showing how to load and display an anigif.
There's no reason to use gif library.
There are 2 ways to create animations:
There are 2 ways to create animations:
- a)Create a large texture with all frames.
All textures must have the same width & height.
b)Just use simple image files(jpeg/png/tga/tga rle/anything), code a custom animation structure that will hold each texture.
- Increase frame time counter while its less than max frame time
Go to next texture if time counter reached max frame time
Render active texture
- time - last time + frame time counter.