IMG_LoadANIAnimation_IO(3)

πŸ“¦
version 3.4.8 Β· 5 versions
, in fedora 43, fedora 44

πŸ’– IMG_LoadANIAnimation_IO(3) πŸ’–

okay bestie, welcome to the SDL_image3 FUNCTIONS corner of the manual, where we are talking about IMG_LoadANIAnimation_IO and yes it is exactly as niche and iconic as it sounds πŸ’…


✨ NAME ✨

IMG_LoadANIAnimation_IO β€” load an ANI animation directly from an SDL_IOStream, no detours, no small talk πŸŽ€


🌸 SYNOPSIS 🌸

#include <SDL3_image/SDL_image.h>

IMG_Animation* IMG_LoadANIAnimation_IO(SDL_IOStream *src);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: if you already know you've definitely got an ANI image on your hands, you can just call this function and it will skip SDL_image's whole file format detection routine. no vibe check, no sniffing around, straight to the animation. main character energy fr fr ✨

but ngl, generally it's better to use the abstract interfaces instead. also worth knowing: there is only an SDL_IOStream interface available here. that's the whole menu, bestie πŸ“

when you're done with the returned animation, the app should dispose of it with a call to IMG_FreeAnimation(). like, actually do it. don't just leave it lying around, that's not the vibe πŸ™ˆ


πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • src β€” an SDL_IOStream from which data will be read. that's the source, the origin, the place the bytes come from πŸ’–

⭐ RETURN VALUE ⭐

Returns a new IMG_Animation, or NULL on error. so if you get NULL, something went wrong and it's giving sad, not slay 😭


🌈 AVAILABILITY 🌈

This function is available since SDL_image 3.4.0. so if you're on something older, sorry babe, it's not there 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie, you ate it πŸ’…βœ¨ this was brought to you by SDL_image, version SDL_image 3.4.8, and the letter A for ANI. go free your animations, mwah πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from