Function loadAnimationTypedRaw

Wraps IMG_LoadAnimationTyped_RW (from SDL_image 2.6) which loads a typed image from a data buffer into a Animation

Animation loadAnimationTypedRaw (
  const(void[]) data,
  string type
) @trusted;

Parameters

NameDescription
data data buffer of the animation
type specified type of the animation

Returns

Animation of the loaded animated image

Throws

dsdl2.SDLException if failed to load the animation