[SDL] Dumping a SDL_Surface to a file?
David Olofson
david at olofson.net
Mon Feb 17 05:50:01 PST 2003
On Monday 17 February 2003 13.42, Johan Persson wrote:
> How do I properly dump a SDL_Surface to a file? I've tried several
> diffrent methods, but I only get 60 bytes of dumped data. I mean,
> that couldn't possible contain the entire chunk of pixel data, or
> could it? What am I doing wrong?
Well, there's more than one memory block to save - but before we start
talking about that kind of stuff; what do you *actually* want to do?
Why not just save the surface as an image file of some standard
format? SDL_SaveBMP() is one way.
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -'
--- http://olofson.net --- http://www.reologica.se ---
More information about the SDL
mailing list