[SDL] IMG_Load and SDL_Surface flags

Torsten Giebl wizard at syntheticsw.com
Tue Dec 18 17:25:23 PST 2007


Hello !


> I load an image with IMG_load from SDL_image library. I am trying to find if
> IMG_Load returns a SWSURFACE or a HWSURFACE.

SDL_image always returns SWSurfaces.

> Does IMG_Load calls SDL_DisplayFormat before returning the surface ?

No, it returns them as they come from disk, memory, ...
8 Bit, 16 Bit, 24 Bit, ...


CU



More information about the SDL mailing list