(This function is part of SDL_image, a separate library from SDL.)

IMG_Animation

Animated image support Currently only animated GIFs are supported.

Header File

Defined in SDL_image.h

Syntax

typedef struct IMG_Animation
{
    int w, h;
    int count;
    SDL_Surface **frames;
    int *delays;
} IMG_Animation;

CategoryAPI, CategoryAPIStruct