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

Ochal Christophe ochal at kefren.be
Thu Dec 7 12:30:45 PST 2006


On Thu, 2006-12-07 at 15:09 -0500, Ryan C. Gordon wrote:

> You could always just use SDL_LoadBMP(), or the SDL_image library, but 
> if you want to do this yourself, create the surface, and then fread() 
> the content into the surface's "pixels" field, and call SDL_SetPalette 
> with the rest of the data you read. (and, uh, the reverse of all of that 
> for writing it out).

Thx for the tips!





More information about the SDL mailing list