IMG_LoadANIAnimation_IO(3)
π 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β anSDL_IOStreamfrom 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 π
IMG_isANI(3)IMG_LoadAnimation(3)IMG_LoadAnimation_IO(3)IMG_LoadAnimationTyped_IO(3)IMG_LoadAPNGAnimation_IO(3)IMG_LoadAVIFAnimation_IO(3)IMG_LoadGIFAnimation_IO(3)IMG_LoadWEBPAnimation_IO(3)IMG_FreeAnimation(3)
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
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms