close method

bool close()

Close an animation decoder, finishing any decoding.

Calling this function frees the animation decoder, and returns the final status of the decoding process.

\param decoder the decoder 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_CreateAnimationDecoder \sa IMG_CreateAnimationDecoder_IO \sa IMG_CreateAnimationDecoderWithProperties

extern SDL_DECLSPEC bool SDLCALL IMG_CloseAnimationDecoder(IMG_AnimationDecoder *decoder)

Implementation

bool close() => imgCloseAnimationDecoder(this);