Function loadAnimation

Wraps IMG_LoadAnimation (from SDL_image 2.6) which loads an animation from a filesystem path into an Animation

Animation loadAnimation (
  string file
) @trusted;

Parameters

NameDescription
file path to the animation file

Returns

Animation of the loaded animated image

Throws

dsdl2.SDLException if failed to load the animation