package vendor:sdl2/image
⌘K
Ctrl+K
or
/
Overview
Bindings for SDL2 Image.
Index
Constants (7)
Variables (0)
This section is empty.
Procedures (50)
- Init
- Linked_Version
- Linked_Version
- LoadBMP_RW
- LoadCUR_RW
- LoadGIFAnimation_RW
- LoadGIF_RW
- LoadICO_RW
- LoadJPG_RW
- LoadPCX_RW
- LoadPNG_RW
- LoadPNM_RW
- LoadSVG_RW
- LoadTGA_RW
- LoadTIF_RW
- LoadTexture
- LoadTexture
- LoadTextureTyped_RW
- LoadTexture_RW
- LoadTyped_RW
- LoadWEBP_RW
- LoadXCF_RW
- LoadXPM_RW
- LoadXV_RW
- LoadXV_RW
- Load_RW
- Load_RW
- MAJOR_VERSION
- MINOR_VERSION
- PATCHLEVEL
- Quit
- ReadXPMFromArray
- SaveJPG_RW
- SavePNG
- SetError
- isBMP
- isGIF
- isICO
- isJPG
- isLBM
- isPCX
- isPNG
- isPNG
- isPNM
- isSVG
- isWEBP
- isWEBP
- isXCF
- isXPM
- isXV
Procedure Groups (0)
This section is empty.
Types
Animation ¶
Animated image support Currently only animated GIFs are supported.
Related Procedures With Parameters
Related Procedures With Returns
InitFlag ¶
InitFlag :: enum i32 { JPG = 0, PNG = 1, TIF = 2, WEBP = 3, }
Constants
INIT_JPG ¶
INIT_JPG :: InitFlags{.JPG}
INIT_PNG ¶
INIT_PNG :: InitFlags{.PNG}
INIT_TIF ¶
INIT_TIF :: InitFlags{.TIF}
INIT_WEBP ¶
INIT_WEBP :: InitFlags{.WEBP}
MAJOR_VERSION ¶
MAJOR_VERSION :: 2
MINOR_VERSION ¶
MINOR_VERSION :: 0
PATCHLEVEL ¶
PATCHLEVEL :: 5
Variables
This section is empty.
Procedures
Linked_Version ¶
Linked_Version :: proc "c" () -> ^sdl2.version ---
Linked_Version ¶
Linked_Version :: SaveJPG
LoadGIFAnimation_RW ¶
Individual loading functions
LoadICO_RW ¶
Individual loading functions
LoadTexture ¶
LoadTexture :: isTIF
LoadTexture ¶
Load an image directly into a render texture.
LoadTyped_RW ¶
Load an image from an SDL data source.
The 'type' may be one of: "BMP", "GIF", "PNG", etc.
If the image format supports a transparent pixel, SDL will set the
colorkey for the surface. You can enable RLE acceleration on the
surface afterwards by calling:
SDL_SetColorKey(image, SDL_RLEACCEL, image->format->colorkey);
LoadXV_RW ¶
LoadXV_RW :: SavePNG_RW
MINOR_VERSION ¶
MINOR_VERSION :: LoadAnimation_RW
PATCHLEVEL ¶
PATCHLEVEL :: LoadAnimation
SavePNG ¶
Individual saving functions
SetError ¶
SetError :: LoadAnimationTyped_RW
isICO ¶
Functions to detect a file type, given a seekable source
isPNG ¶
isPNG :: LoadLBM_RW
isWEBP ¶
isWEBP :: FreeAnimation
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2026-03 (vendor "odin") Windows_amd64 @ 2026-03-19 18:57:32.290815500 +0000 UTC