diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 13:03:18 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 13:03:18 -0400 |
| commit | 304bab2aced9cae51d2e4c09f3d9e06c66ff175d (patch) | |
| tree | 8397f81b893feb1cf624eee49c4fb01297aa08ad /vendor/SDL2_Image/README.txt | |
| parent | ba350484072c78e5e1a765370c22dbd76474aa39 (diff) | |
| download | ether-304bab2aced9cae51d2e4c09f3d9e06c66ff175d.tar.gz ether-304bab2aced9cae51d2e4c09f3d9e06c66ff175d.tar.bz2 ether-304bab2aced9cae51d2e4c09f3d9e06c66ff175d.zip | |
we can build a window app!
build type must be set to Release or it's horribly slow, and fullscreen does not work
Diffstat (limited to 'vendor/SDL2_Image/README.txt')
| -rw-r--r-- | vendor/SDL2_Image/README.txt | 40 |
1 files changed, 40 insertions, 0 deletions
| diff --git a/vendor/SDL2_Image/README.txt b/vendor/SDL2_Image/README.txt new file mode 100644 index 0000000..64ff924 --- /dev/null +++ b/vendor/SDL2_Image/README.txt | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | |||
| 2 | SDL_image 2.0 | ||
| 3 | |||
| 4 | The latest version of this library is available from: | ||
| 5 | http://www.libsdl.org/projects/SDL_image/ | ||
| 6 | |||
| 7 | This is a simple library to load images of various formats as SDL surfaces. | ||
| 8 | This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG, | ||
| 9 | TGA, TIFF, and simple SVG formats. | ||
| 10 | |||
| 11 | API: | ||
| 12 | #include "SDL_image.h" | ||
| 13 | |||
| 14 | SDL_Surface *IMG_Load(const char *file); | ||
| 15 | or | ||
| 16 | SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc); | ||
| 17 | or | ||
| 18 | SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type); | ||
| 19 | |||
| 20 | where type is a string specifying the format (i.e. "PNG" or "pcx"). | ||
| 21 | Note that IMG_Load_RW cannot load TGA images. | ||
| 22 | |||
| 23 | To create a surface from an XPM image included in C source, use: | ||
| 24 | |||
| 25 | SDL_Surface *IMG_ReadXPMFromArray(char **xpm); | ||
| 26 | |||
| 27 | An example program 'showimage' is included, with source in showimage.c | ||
| 28 | |||
| 29 | JPEG support requires the JPEG library: http://www.ijg.org/ | ||
| 30 | PNG support requires the PNG library: http://www.libpng.org/pub/png/libpng.html | ||
| 31 | and the Zlib library: http://www.gzip.org/zlib/ | ||
| 32 | TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/ | ||
| 33 | |||
| 34 | If you have these libraries installed in non-standard places, you can | ||
| 35 | try adding those paths to the configure script, e.g. | ||
| 36 | sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib" | ||
| 37 | If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH | ||
| 38 | so shared library loading works correctly. | ||
| 39 | |||
| 40 | This library is under the zlib License, see the file "COPYING.txt" for details. | ||
