logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

IMG_LoadAnimation - Load an animation from a file.

Availability

       This function is available since SDL_image 3.0.0.

Description

       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.

Header File

       Defined in SDL3_image/SDL_image.h

Name

       IMG_LoadAnimation - Load an animation from a file.

Return Value

       ( IMG_Animation
        *) Returns a new

       IMG_Animation , or NULL on error.

See Also

(3), IMG_FreeAnimation(3)

SDL_image                                        SDL_image 3.2.4                            IMG_LoadAnimation(3)

Synopsis

#include"SDL3_image/SDL_image.h"IMG_Animation*IMG_LoadAnimation(constchar*file);

See Also