IMG_LoadAnimation(3)

IMG_LoadAnimation3

Load an animation from a file.

Usage

#include "SDL3_image/SDL_image.h"

IMG_Animation * IMG_LoadAnimation(const char *file);

Header file

Defined in SDL3_image/SDL_image.h

Overview

When done with the returned animation, the app should dispose of it with a call to IMG_FreeAnimation ().

Function parameters

file

path on the filesystem containing an animated image.

Return value

( IMG_Animation
*) Returns a new

IMG_Animation , or NULL on error.

Availability

This function is available since SDL_image 3.0.0.

From libsdl3-image-doc 3.2.4+ds-1+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.