• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..29-Oct-2021-

.deps/29-Oct-2021-

VisualC/29-Oct-2021-

VisualC-WinRT/29-Oct-2021-

VisualCE/29-Oct-2021-

Xcode/29-Oct-2021-

Xcode-iOS/SDL_image.xcodeproj/29-Oct-2021-

acinclude/29-Oct-2021-

autom4te.cache/29-Oct-2021-

debian/29-Oct-2021-

external/29-Oct-2021-

unused/29-Oct-2021-

Android.mk A D29-Oct-20212.2 KiB9060

CHANGES.txt A D29-Oct-20216.9 KiB179162

COPYING.txt A D29-Oct-2021996 2117

IMG.c A D29-Oct-20218 KiB291222

IMG_ImageIO.m A D29-Oct-202125.5 KiB793667

IMG_UIImage.m A D29-Oct-202111.8 KiB441382

IMG_WIC.c A D29-Oct-20217.8 KiB309241

IMG_bmp.c A D29-Oct-202128.5 KiB958766

IMG_gif.c A D29-Oct-202117.3 KiB644497

IMG_jpg.c A D29-Oct-202119 KiB590411

IMG_lbm.c A D29-Oct-202115.9 KiB501368

IMG_pcx.c A D29-Oct-20219 KiB300230

IMG_png.c A D29-Oct-202125.2 KiB702529

IMG_pnm.c A D29-Oct-20217.2 KiB261181

IMG_svg.c A D29-Oct-20214.3 KiB161113

IMG_tga.c A D29-Oct-20219.1 KiB336252

IMG_tif.c A D29-Oct-20216.4 KiB242170

IMG_webp.c A D29-Oct-20218.6 KiB292214

IMG_xcf.c A D29-Oct-202123.9 KiB949781

IMG_xpm.c A D29-Oct-202144.7 KiB1,2111,078

IMG_xv.c A D29-Oct-20214 KiB163108

IMG_xxx.c A D29-Oct-20212.1 KiB8642

Makefile A D29-Oct-202134.3 KiB1,056908

Makefile.am A D29-Oct-20211.6 KiB8467

Makefile.in A D29-Oct-202135.3 KiB1,056936

README-emscripten.txt A D29-Oct-2021786 2114

README.txt A D29-Oct-20211.5 KiB4128

SDL2_image.pc A D29-Oct-2021277 1310

SDL2_image.pc.in A D29-Oct-2021275 1310

SDL2_image.spec A D29-Oct-20211.6 KiB7051

SDL2_image.spec.in A D29-Oct-20211.6 KiB7055

SDL_image.h A D29-Oct-20216.7 KiB16282

aclocal.m4 A D29-Oct-202147.4 KiB1,2601,149

autogen.sh A D29-Oct-2021158 94

compile A D29-Oct-20217.2 KiB349259

config.guess A D29-Oct-202143.2 KiB1,4811,288

config.log A D29-Oct-202147.5 KiB1,4661,440

config.status A D29-Oct-202155 KiB1,9431,493

config.sub A D29-Oct-202135.3 KiB1,8021,661

configure A D29-Oct-2021452.3 KiB15,73012,374

configure.in A D29-Oct-202112.4 KiB389349

depcomp A D29-Oct-202123 KiB792502

gcc-fat.sh A D29-Oct-20212.5 KiB10484

install-sh A D29-Oct-202114.5 KiB510335

libtool A D29-Oct-2021252.1 KiB8,9016,649

ltmain.sh A D29-Oct-2021237.6 KiB8,4086,472

miniz.h A D29-Oct-2021222.2 KiB4,9433,786

missing A D29-Oct-20216.7 KiB216143

nanosvg.h A D29-Oct-202178.2 KiB3,0372,505

nanosvgrast.h A D29-Oct-202137.2 KiB1,4511,076

version.rc A D29-Oct-2021974 3934

README-emscripten.txt

1Building SDL2_image
2-------------------
3
4The easiest way to use SDL2_image with Emscripten is to use Emscripten ports (https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#emscripten-ports) (-s USE_SDL_IMAGE=2).
5
6If you want to build it yourself instead you can use these instructions:
7
8Step 0 - get emscripten
9
10Step 1 - get sdl2-emscripten
11 * clone https://github.com/emscripten-ports/SDL2.git
12 * follow the build instructions in SDL2/docs/README-emscripten.md (make sure to pass a --prefix to configure)
13 * make install
14
15Step 2 - get sdl_image
16 * emconfigure ./configure  --disable-sdltest --with-sdl-prefix=/path/to/sdl --prefix=/path/to/install
17 * (where /path/to/sdl is the path you passed as --prefix to SDL2 configure)
18 * emmake make
19 * make install
20
21

README.txt

1
2SDL_image 2.0
3
4The latest version of this library is available from:
5http://www.libsdl.org/projects/SDL_image/
6
7This is a simple library to load images of various formats as SDL surfaces.
8This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG,
9TGA, TIFF, and simple SVG formats.
10
11API:
12#include "SDL_image.h"
13
14	SDL_Surface *IMG_Load(const char *file);
15or
16	SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);
17or
18	SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type);
19
20where type is a string specifying the format (i.e. "PNG" or "pcx").
21Note that IMG_Load_RW cannot load TGA images.
22
23To create a surface from an XPM image included in C source, use:
24
25	SDL_Surface *IMG_ReadXPMFromArray(char **xpm);
26
27An example program 'showimage' is included, with source in showimage.c
28
29JPEG support requires the JPEG library: http://www.ijg.org/
30PNG support requires the PNG library: http://www.libpng.org/pub/png/libpng.html
31    and the Zlib library: http://www.gzip.org/zlib/
32TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/
33
34If you have these libraries installed in non-standard places, you can
35try adding those paths to the configure script, e.g.
36sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib"
37If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH
38so shared library loading works correctly.
39
40This library is under the zlib License, see the file "COPYING.txt" for details.
41