imgCloseAnimationEncoder function image

bool imgCloseAnimationEncoder(
  1. Pointer<ImgAnimationEncoder> encoder
)

Close an animation encoder, finishing any encoding.

Calling this function frees the animation encoder, and returns the final status of the encoding process.

\param encoder the encoder to close. \returns true on success or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL_image 3.4.0.

\sa IMG_CreateAnimationEncoder \sa IMG_CreateAnimationEncoder_IO \sa IMG_CreateAnimationEncoderWithProperties

extern SDL_DECLSPEC bool SDLCALL IMG_CloseAnimationEncoder(IMG_AnimationEncoder *encoder)

Implementation

bool imgCloseAnimationEncoder(Pointer<ImgAnimationEncoder> encoder) {
  final imgCloseAnimationEncoderLookupFunction = _libImage
      .lookupFunction<
        Uint8 Function(Pointer<ImgAnimationEncoder> encoder),
        int Function(Pointer<ImgAnimationEncoder> encoder)
      >('IMG_CloseAnimationEncoder');
  return imgCloseAnimationEncoderLookupFunction(encoder) == 1;
}