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 β€” an SDL_IOStream to 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:


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