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

IMG_Animation

Animated image support

Header File

Defined in <SDL3_image/SDL_image.h>

Syntax

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;

Remarks

Currently only animated GIFs and WEBP images are supported.


CategoryAPI, CategoryAPIStruct, CategorySDLImage


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.