IMG_LoadPCX_IO(3)
π IMG_LoadPCX_IO(3) π
okay so bestie, welcome to the SDL_image3 FUNCTIONS manual page for IMG_LoadPCX_IO. this one is short and sweet, and it's giving "i know exactly what file type i have" energy. π
β¨ NAME β¨
IMG_LoadPCX_IO β load a PCX image directly. that's the whole name section, slay. π
πΈ SYNOPSIS πΈ
#include <SDL3_image/SDL_image.h>
SDL_Surface * IMG_LoadPCX_IO(SDL_IOStream *src);
π¦ DESCRIPTION π¦
If you know you definitely have a PCX image, you can call this function, and it will skip SDL_image's file format detection routines. no detective work, no "hmm what could this be," just straight to PCX. π
Generally it's better to use the abstract interfaces β lowkey that's the usual rec β and also, there is only an SDL_IOStream interface available here. so that's the vibe. β¨
π«Ά FUNCTION PARAMETERS π«Ά
srcβ anSDL_IOStreamto load image data from. that's the whole parameter list, bestie. π
π RETURN VALUE π
Returns SDL surface, or NULL on error. so: win = surface, flop = NULL, no cap. π
β AVAILABILITY β
This function is available since SDL_image 3.0.0. periodt. π
π SEE ALSO π
go read these too, iykyk:
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_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)IMG_LoadXV_IO(3)
mwah π β this cutie is filed under SDL_image, version SDL_image 3.4.4; the footer doesn't print a date, so i'm not gonna invent one, bestie. periodt π
π¦ 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