IMG_LoadGIF_IO(3)

okay bestie, welcome to IMG_LoadGIF_IO(3), straight outta the SDL_image3 FUNCTIONS part of the manual ✨

πŸŽ€ NAME πŸŽ€

IMG_LoadGIF_IO β€” load a GIF image directly, no detours, no drama πŸ’…

🌸 SYNOPSIS 🌸

#include <SDL3_image/SDL_image.h>

SDL_Surface * IMG_LoadGIF_IO(SDL_IOStream *src);

πŸ’– DESCRIPTION πŸ’–

So if you already know you definitely have a GIF image, you can call this function, and it will skip SDL_image's file format detection routines. It's like walking into the club and already knowing your name's on the list, iykyk ✨

Generally it's better to use the abstract interfaces, bestie β€” that's the recommended vibe. Also, heads up: there is only an SDL_IOStream interface available here. That's the one πŸŽ€

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • src β€” an SDL_IOStream to load image data from. That's where the GIF bytes come from πŸ’œ

⭐ RETURN VALUE ⭐

Returns SDL surface, or NULL on error. So if it hands you NULL, that's the error signal, no cap 😭

πŸ‘‘ AVAILABILITY πŸ‘‘

This function is available since SDL_image 3.0.0. Periodt πŸ‘‘

🌈 SEE ALSO 🌈

Your other format-specific besties are right here:


okay that's the whole page, bestie 🫢 footer tea: source/version is SDL_image 3.4.4, and the page is IMG_LoadGIF_IO(3). No date was printed in the original footer, so I'm not inventing one πŸ’œ

πŸ“¦ where this page comes from