imgFreeAnimation function image

void imgFreeAnimation(
  1. Pointer<ImgAnimation> anim
)

Dispose of an IMG_Animation and free its resources.

The provided anim pointer is not valid once this call returns.

\param anim IMG_Animation to dispose of.

\since This function is available since SDL_image 3.0.0.

\sa IMG_LoadAnimation \sa IMG_LoadAnimation_IO \sa IMG_LoadAnimationTyped_IO \sa IMG_LoadAPNGAnimation_IO \sa IMG_LoadAVIFAnimation_IO \sa IMG_LoadGIFAnimation_IO \sa IMG_LoadWEBPAnimation_IO

extern SDL_DECLSPEC void SDLCALL IMG_FreeAnimation(IMG_Animation *anim)

Implementation

void imgFreeAnimation(Pointer<ImgAnimation> anim) {
  final imgFreeAnimationLookupFunction = _libImage
      .lookupFunction<
        Void Function(Pointer<ImgAnimation> anim),
        void Function(Pointer<ImgAnimation> anim)
      >('IMG_FreeAnimation');
  return imgFreeAnimationLookupFunction(anim);
}