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