[SDL_image] Loading several images from a file

Hello,

There are some image file formats (like gif for example) that can
contain several images. However, there is no function in SDL_image to
have access to all the images.

It would be nice/useful to have a function to load such a file, and
return an array of SDL_Surface, for each image present in the file.–
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

2006/7/15, Patrice Mandin <mandin.patrice at wanadoo.fr>:

There are some image file formats (like gif for example) that can
contain several images. However, there is no function in SDL_image to
have access to all the images.

It would be nice/useful to have a function to load such a file, and
return an array of SDL_Surface, for each image present in the file.

Hi!
For PNG you could try SDL_anim (http://tamale.net/SDL_anim/).–
Roman Kyrylych (??? ???)

Hello !

There are some image file formats (like gif for example) that can
contain several images. However, there is no function in SDL_image to have
access to all the images.

It would be nice/useful to have a function to load such a file, and
return an array of SDL_Surface, for each image present in the file.

Great Idea. For anim formats like gif you need add.
data like time to wait between two frames.
gif, flc, fli

CU

Hello!

2006/7/15, Torsten Giebl :

There are some image file formats (like gif for example) that can
contain several images. However, there is no function in SDL_image to have
access to all the images.

It would be nice/useful to have a function to load such a file, and
return an array of SDL_Surface, for each image present in the file.

Great Idea. For anim formats like gif you need add.
data like time to wait between two frames.
gif, flc, fli

There is also SDL_flic (http://www.geocities.com/andre_leiradella/) and SDL_mng.
It will be very good to have SDL_anim, SDL_flic and SDL_mng integrated
into SDL_image. Can this be done in SDL_image 1.3?–
Roman Kyrylych (??? ???)

Hello !

There is also SDL_flic (http://www.geocities.com/andre_leiradella/) and
SDL_mng.
It will be very good to have SDL_anim, SDL_flic and SDL_mng integrated
into SDL_image. Can this be done in SDL_image 1.3?

For me it would be no problem.
A few KBs more or less, who cares.

CU

2006/7/15, Torsten Giebl :

It will be very good to have SDL_anim, SDL_flic and SDL_mng integrated
into SDL_image. Can this be done in SDL_image 1.3?
For me it would be no problem.
A few KBs more or less, who cares.

Thanks! Maybe you could also integrate IMG_savepng by Philip D. Bober.
See this thread: http://www.libsdl.org/pipermail/sdl/2004-April/061287.html.
You can find the source in this little utility: http://burningsmell.org/xtopng/--
Roman Kyrylych (??? ???)