sdl2-image-2.8.10
SDL2 image library
Back to search · Project homepage
Description
This is a simple library to load images of various formats as SDL2
surfaces. This library supports BMP, PPM, 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_Load_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.
Package information
- Ports path
- devel/sdl2-image
- Package architecture
- amd64
- Maintainer
- Thomas Frohwein <thfr@openbsd.org>
- Categories
- devel, graphics
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.
Direct dependencies
Library
- archivers/brotli
- devel/highway
- devel/sdl2
- graphics/lcms2
- graphics/libavif
- graphics/libjxl
- graphics/libwebp
- graphics/tiff
Build
Used by (55 dependency relationships)
Includes library, runtime, build and test relationships. Results load 100 at a time.