[SDL] Multiple Images in one file

Paul Lowe spazz at ulink.net
Thu Aug 26 14:31:44 PDT 1999



Enrico Weigelt wrote:

> Paul Lowe wrote:
> >
> > Ryan Wahle wrote:
> >
> > > Hello,
> > >
> > > I was wondering if it was possible to have like a pcx file, with multiple
> > > images in it. So one pcx file would like contain all the frames for the
> > > animation... all the frames would be the same size, but I was wondering if
> > > it was possible to grap certain parts of an image and put them into a
> > > SDL_Surface structure. Kind of like a SDL_loadBMP but it wouldn't take the
> > > source from a file, and instead take it from an array instead...
> > >
> > > is this possible with the sdl?
> >
> > d00d, write your own animation format. It's easy as hell. Just write out the
> > surface->pixels to a file for each frame, and then load all of it into memory
> > with the same specs etc, it's easy.
>
> before creating a new format you could have a look at www.wotsit.org
>
> i think there are enough formats out there ...
>
> bye,
> ew.

It's not like I mean try to create another standard, just hack it together for your
own conveinience.

Paul Lowe
spazz at ulink.net




More information about the SDL mailing list