Load an animation from a file.
file | path on the filesystem containing an animated image. |
Returns a new IMG_Animation, or NULL on error.
When done with the returned animation, the app should dispose of it with a call to IMG_FreeAnimation().
This function is available since SDL_image 2.6.0.