All Projects → libsdl-org → SDL_image

libsdl-org / SDL_image

Licence: Zlib license
Image decoding for many popular formats for Simple Directmedia Layer.

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to SDL image

Dagon
3D game engine for D
Stars: ✭ 165 (-49.23%)
Mutual labels:  sdl2
Flextgl
OpenGL and Vulkan header and loader generator.
Stars: ✭ 180 (-44.62%)
Mutual labels:  sdl2
Engine
A basic cross-platform 3D game engine
Stars: ✭ 208 (-36%)
Mutual labels:  sdl2
Div Games Studio
Complete cross platform games development package, originally for DOS but now available on modern platforms.
Stars: ✭ 168 (-48.31%)
Mutual labels:  sdl2
Civone
An open source implementation of Sid Meier's Civilization.
Stars: ✭ 176 (-45.85%)
Mutual labels:  sdl2
Jitboy
A Game Boy emulator with dynamic recompilation (JIT)
Stars: ✭ 190 (-41.54%)
Mutual labels:  sdl2
Gf
A C++14 framework for 2D games
Stars: ✭ 154 (-52.62%)
Mutual labels:  sdl2
Tmxlite
lightweight C++14 parser for Tiled tmx files
Stars: ✭ 248 (-23.69%)
Mutual labels:  sdl2
Gwork
Skinnable GUI with useful widget collection. Fork of GWEN.
Stars: ✭ 179 (-44.92%)
Mutual labels:  sdl2
42 cheatsheet
Also referred to as "The C Man"
Stars: ✭ 204 (-37.23%)
Mutual labels:  sdl2
Moonlight Qt
GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
Stars: ✭ 2,796 (+760.31%)
Mutual labels:  sdl2
Dino Rush
🌋 Endless runner game
Stars: ✭ 173 (-46.77%)
Mutual labels:  sdl2
Freej2me
A free J2ME emulator with libretro, awt and sdl2 frontends.
Stars: ✭ 203 (-37.54%)
Mutual labels:  sdl2
Plutonium
An easy-to-use UI framework for Nintendo Switch homebrew
Stars: ✭ 166 (-48.92%)
Mutual labels:  sdl2
Haskanoid
A breakout game in Haskell using SDL and FRP, with Wiimote and Kinect support.
Stars: ✭ 242 (-25.54%)
Mutual labels:  sdl2
Spearmint
Spearmint — an updated id Tech 3 engine for continuing the classics and creating new games.
Stars: ✭ 161 (-50.46%)
Mutual labels:  sdl2
Ck2dll
Crusader Kings II double byte patch /production : 3.3.4 /dev : 3.3.4
Stars: ✭ 186 (-42.77%)
Mutual labels:  sdl2
Dome
A lightweight game development environment where games can be written in Wren
Stars: ✭ 251 (-22.77%)
Mutual labels:  sdl2
Nothing
A simple platformer about nothing
Stars: ✭ 249 (-23.38%)
Mutual labels:  sdl2
Vcmi
Open-source engine for Heroes of Might and Magic III
Stars: ✭ 2,514 (+673.54%)
Mutual labels:  sdl2
SDL_image 3.0

The latest version of this library is available from GitHub:
https://github.com/libsdl-org/SDL_image/releases

This is a simple library to load images of various formats as SDL surfaces.
It can load BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PPM/PGM/PBM), QOI, TGA, XCF, XPM, and simple SVG format images. It can also load AVIF, JPEG-XL, TIFF, and WebP images, depending on build options (see the note below for details.)

API:
#include <SDL3/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

Documentation is also available online at https://wiki.libsdl.org/SDL_image

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

Note:
Support for AVIF, JPEG-XL, TIFF, and WebP are not included by default because of the size of the decode libraries, but you can get them by running external/download.sh
- When building with CMake, you can enable the appropriate SDL3IMAGE_* options defined in CMakeLists.txt. SDL3IMAGE_VENDORED allows switching between system and vendored libraries.
- When building with configure/make, you can build and install them normally and the configure script will detect and use them.
- When building with Visual Studio, you will need to build the libraries and then add the appropriate LOAD_* preprocessor define to the Visual Studio project.
- When building with Xcode, you can edit the config at the top of the project to enable them, and you will need to include the appropriate framework in your application.
- For Android, you can edit the config at the top of Android.mk to enable them.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].