IMG_LoadXV_IO(3)
okay so bestie, youβve landed on IMG_LoadXV_IO(3) β yes, thatβs the page, and it lives in the SDL_image3 FUNCTIONS part of the manual. Itβs giving βI already know this is a XV image, let me skip the lineup.β π
NAME π
IMG_LoadXV_IO β load a XV image directly. No extra format-detective arc, just the direct route. π
SYNOPSIS π
#include <SDL3_image/SDL_image.h>
SDL_Surface * IMG_LoadXV_IO(SDL_IOStream *src);
DESCRIPTION π¦
So hereβs the vibe: if you know β like, truly know in your soul β that youβve definitely got a XV image, you can call this function. It will skip SDL_imageβs file format detection routines entirely. β¨
ngl, the abstract interfaces are usually the better move. Also, heads up: there is only an SDL_IOStream interface available here. Thatβs the whole interface situation, no extra flavors. π«Ά
FUNCTION PARAMETERS πΈ
srcβ anSDL_IOStreamto load image data from. Thatβs your data source, bestie. π
RETURN VALUE β¨
You get an SDL surface back, or NULL on error. So if itβs NULL, something went sideways. π
AVAILABILITY π₯
This function is available since SDL_image 3.0.0. Periodt. π
SEE ALSO π
IMG_LoadAVIF_IO(3)IMG_LoadBMP_IO(3)IMG_LoadCUR_IO(3)IMG_LoadGIF_IO(3)IMG_LoadICO_IO(3)IMG_LoadJPG_IO(3)IMG_LoadJXL_IO(3)IMG_LoadLBM_IO(3)IMG_LoadPCX_IO(3)IMG_LoadPNG_IO(3)IMG_LoadPNM_IO(3)IMG_LoadQOI_IO(3)IMG_LoadSVG_IO(3)IMG_LoadTGA_IO(3)IMG_LoadTIF_IO(3)IMG_LoadWEBP_IO(3)IMG_LoadXCF_IO(3)IMG_LoadXPM_IO(3)
Catch you later, bestie β source/version check: SDL_image, version SDL_image 3.4.4. The footer didnβt give a date, so Iβm not making one up. ππ«Ά
π¦ where this page comes from
- ubuntu stonking: libsdl3-image-doc 3.4.4+ds-2 Β· zlib/libpng AND HPND-like AND zlib-like-permissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms