loadAnimation

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

@safe @trusted
static if(bindSDLImage)
static if(sdlImageSupport >= SDLImageSupport.v2_6)
loadAnimation
(
string file
)

Parameters

file string

path to the animation file

Return Value

Type: Animation

dsdl2.image.Animation of the loaded animated image

Throws

dsdl2.SDLException if failed to load the animation

Meta