imgFreeAnimation function

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 2.6.0.

\sa IMG_LoadAnimation \sa IMG_LoadAnimation_RW \sa IMG_LoadAnimationTyped_RW

extern DECLSPEC void SDLCALL IMG_FreeAnimation(IMG_Animation *anim)

Implementation

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