[SDL] N00b questions... (I'm sorry! Stop slapping me with old fish ; ))

Ochal Christophe ochal at kefren.be
Thu Dec 7 12:29:37 PST 2006


On Thu, 2006-12-07 at 21:04 +0100, David Olofson wrote:

> Well, I've been using Linux for some years, so I never ran into that 
> problem. I just type "man SDL_BlitSurface" or whatever, and I get 
> exactly the kind of information you're asking for. :-)
> 
> Now, if there are Un*x man pages, there usually are online versions, 
> off-line HTML versions and whatnot of them as well...
> 
> *having a look around*
> 
> Yes - try these:
> 	http://www.libsdl.org/docs.php
> 	http://www.libsdl.org/cgi/docwiki.cgi/SDL_20API

Thx!

> > Currently i'm looking for a way to save an 8bit surface's content &
> > palette into a file with fwrite to be loaded into a surface
> > afterwards with fread, anyone have some pointers?
> 
> That's possible, of course (you'll find what you need in the 
> SDL_Surface, SDL_PixelFormat and SDL_Palette structs), but it's 
> probably easier to just use SDL_SaveBMP() and SDL_LoadBMP(). :-)

Yea, but i want to dump several things into one file instead of lots of
little files, so SDL_SaveBMP etc won't do, i think i have a pretty
decent idea of how to proceed tho... 





More information about the SDL mailing list