IMG_Animation(3type)
π NAME π
okay bestie, welcome to the IMG_Animation(3type) page from the SDL_image3 DATATYPES manual β and it's literally about IMG_Animation, aka Animated image support π
β¨. That's the whole name vibe: IMG_Animation = animated image support, periodt.
πΈ SYNOPSIS πΈ
first, include the header like this, no cap:
#include <SDL3_image/SDL_image.h>
then the struct is right here, and yes every field is iconic:
typedef struct IMG_Animation
{
int w; /**< The width of the frames */
int h; /**< The height of the frames */
int count; /**< The number of frames */
SDL_Surface **frames; /**< An array of frames */
int *delays; /**< An array of frame delays, in milliseconds */
} IMG_Animation;
that's it, that's the tea βπ β the struct is doing main character energy with w, h, count, frames, and delays π¦, and the comments are right there spelling out the width, height, number of frames, array of frames, and array of frame delays in milliseconds.
kisses from the footer: SDL_image, version 3.4.4 β that's the source/version tea, no date listed, and honestly it's giving βshort footer, big slayβ π«Άπ
π¦ where this page comes from
- ubuntu stonking: libsdl3-image-doc 3.4.4+ds-2 Β· zlib/libpng AND HPND-like AND zlib-like-permissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms