Here's an SDL loader for imagefile. If you are familiar with SDL_image's
syntax, you shouldn't have any problems.
SDL_Surface *IF_Load(char *name);
Returns an SDL surface made from an imagefile on the hard drive.
SDL_Surface *IF_Load_RW(SDL_RWops *ctx);
Returns an SDL_Surface made from an imagefile in an SDL_RWops
structure.
Loading bzip2 images is explained in the README.
Good luck!
Charlie Murphy
Received on Fri Aug 08 2014 - 21:14:32 CEST