Ok; I’m all out of fish now, so I figure I might as well reply.
I’ve recently decided to start coding some games in C, and i want to
use SDL, sofar SDL seems like an ideal solution, but finding your
way around the available documentation is rather lots of hitting
google with the right questions type of thing, is there an online
API reference page or something with a list of available functions &
their parameters (plus short description)? Or did i miss a big link
on the SDL site & deserve a public flogging for even asking this?
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:
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().
//David Olofson - Programmer, Composer, Open Source Advocate
.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
’-- http://www.reologica.se - Rheology instrumentation --'On Thursday 07 December 2006 20:42, Ochal Christophe wrote: