IMG_LoadQOI_IO(3)

πŸ’… IMG_LoadQOI_IO(3) β€” the QOI speedrun, bestie πŸ’…

okay so this is from SDL_image3 FUNCTIONS β€” yes, the IMG_LoadQOI_IO(3) one β€” and it’s lowkey iconic: your direct little shortcut for loading a QOI image, no detective work required. ✨

🌸 NAME 🌸

IMG_LoadQOI_IO β€” load a QOI image directly. fr fr. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3_image/SDL_image.h>

SDL_Surface * IMG_LoadQOI_IO(SDL_IOStream *src);

✨ DESCRIPTION ✨

So if you definitely know you have a QOI image, you can call this function, and it will skip SDL_image's file format detection routines. It’s giving β€œI already clocked the vibe, no need to sniff every format.” πŸ‘‘

Generally it’s better to use the abstract interfaces; also, there is only an SDL_IOStream interface available here. Noted, bestie. πŸ’–

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • src β€” an SDL_IOStream to load image data from. 🫢

πŸ’€ RETURN VALUE πŸ’€

Returns SDL surface, or NULL on error. That’s the whole mood β€” if it’s NULL, it is not slaying. 😭

🌈 AVAILABILITY 🌈

This function is available since SDL_image 3.0.0. Periodt. ⭐

πŸ‘‘ SEE ALSO πŸ‘‘

Go give these other loaders some main character energy too:


That’s the tea from SDL_image 3.4.4 β€” source/version: SDL_image 3.4.4, and no explicit date is printed in the page footer I was handed, so consider this your cute little sign-off. IMG_LoadQOI_IO(3) and out. πŸ’…πŸŽ€

πŸ“¦ where this page comes from