rude 22a7ae0d8e Add CMakeLists.txt for SDL2_image. 12 years ago
..
Android.mk e9b8993261 Add SDL2_image 2.0.0. 12 years ago
CHANGES.txt e9b8993261 Add SDL2_image 2.0.0. 12 years ago
CMakeLists.txt 22a7ae0d8e Add CMakeLists.txt for SDL2_image. 12 years ago
COPYING.txt e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_ImageIO.m e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_UIImage.m e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_bmp.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_gif.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_jpg.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_lbm.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_pcx.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_png.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_pnm.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_tga.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_tif.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_webp.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_xcf.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_xpm.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_xv.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
IMG_xxx.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
Makefile.am e9b8993261 Add SDL2_image 2.0.0. 12 years ago
Makefile.in e9b8993261 Add SDL2_image 2.0.0. 12 years ago
README.txt e9b8993261 Add SDL2_image 2.0.0. 12 years ago
SDL2_image.pc.in e9b8993261 Add SDL2_image 2.0.0. 12 years ago
SDL2_image.spec e9b8993261 Add SDL2_image 2.0.0. 12 years ago
SDL2_image.spec.in e9b8993261 Add SDL2_image 2.0.0. 12 years ago
SDL_image.h e9b8993261 Add SDL2_image 2.0.0. 12 years ago
aclocal.m4 e9b8993261 Add SDL2_image 2.0.0. 12 years ago
autogen.sh e9b8993261 Add SDL2_image 2.0.0. 12 years ago
config.guess e9b8993261 Add SDL2_image 2.0.0. 12 years ago
config.sub e9b8993261 Add SDL2_image 2.0.0. 12 years ago
configure e9b8993261 Add SDL2_image 2.0.0. 12 years ago
configure.in e9b8993261 Add SDL2_image 2.0.0. 12 years ago
depcomp e9b8993261 Add SDL2_image 2.0.0. 12 years ago
gcc-fat.sh e9b8993261 Add SDL2_image 2.0.0. 12 years ago
install-sh e9b8993261 Add SDL2_image 2.0.0. 12 years ago
ltmain.sh e9b8993261 Add SDL2_image 2.0.0. 12 years ago
miniz.h e9b8993261 Add SDL2_image 2.0.0. 12 years ago
missing e9b8993261 Add SDL2_image 2.0.0. 12 years ago
showimage.c e9b8993261 Add SDL2_image 2.0.0. 12 years ago
version.rc e9b8993261 Add SDL2_image 2.0.0. 12 years ago

README.txt


SDL_image 2.0

The latest version of this library is available from:
http://www.libsdl.org/projects/SDL_image/

This is a simple library to load images of various formats as SDL surfaces.
This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG,
TGA, and TIFF formats.

API:
#include "SDL_image.h"

SDL_Surface *IMG_Load(const char *file);
or
SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
or
SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type);

where type is a string specifying the format (i.e. "PNG" or "pcx").
Note that IMG_Load_RW cannot load TGA images.

To create a surface from an XPM image included in C source, use:

SDL_Surface *IMG_ReadXPMFromArray(char **xpm);

An example program 'showimage' is included, with source in showimage.c

JPEG support requires the JPEG library: http://www.ijg.org/
PNG support requires the PNG library: http://www.libpng.org/pub/png/libpng.html
and the Zlib library: http://www.gzip.org/zlib/
TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/

If you have these libraries installed in non-standard places, you can
try adding those paths to the configure script, e.g.
sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib"
If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH
so shared library loading works correctly.

This library is under the zlib License, see the file "COPYING.txt" for details.