[SDL] Multiple Images in one file

Enrico Weigelt weigelt at nibiru.pauls.erfurt.thur.de
Fri Aug 27 16:31:28 PDT 1999


Paul Lowe wrote:
> 
> 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.
hmmm... okay, 

wouldn´t it be nice, to implement viewers for standard formats, so many
other people 
could use it ? (possibly raises the popularity of SDL ...)

ew.



> Paul Lowe
> spazz at ulink.net

-- 
-------------------------------------------
lets go to another world ... oberon



More information about the SDL mailing list