IMG_LoadXCF_IO(3)

🌸 NAME 🌸

bestie, this is IMG_LoadXCF_IO(3) from the SDL_image3 FUNCTIONS manual β€” the whole page is about IMG_LoadXCF_IO: load a XCF image directly. periodt. πŸ’…

✨ SYNOPSIS ✨

#include <SDL3_image/SDL_image.h>

SDL_Surface * IMG_LoadXCF_IO(SDL_IOStream *src);

πŸ’– DESCRIPTION πŸ’–

Okay so if you know you definitely have a XCF image, you can call this function, and it will skip SDL_image's file format detection routines. It's giving β€œI already know what this file is, don't @ me.” πŸ¦‹

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

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • src β€” an SDL_IOStream to load image data from. That's the whole input vibe. πŸŽ€

πŸ¦‹ RETURN VALUE πŸ¦‹

Returns an SDL surface, or NULL on error. So bestie, vibe check that return value β€” NULL means error, no cap. πŸ’€

🌈 AVAILABILITY 🌈

This function is available since SDL_image 3.0.0. iconic, honestly. 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

You already know the format-loading besties are all here:


sign-off, bestie 🫢: source is SDL_image, version is SDL_image 3.4.4 β€” and the footer didn't give a date, so I'm not inventing one, fr fr πŸ’…βœ¨

πŸ“¦ where this page comes from