Reset an animation decoder.
Defined in <SDL3_image/SDL_image.h>
bool IMG_ResetAnimationDecoder(IMG_AnimationDecoder *decoder);
IMG_AnimationDecoder * | decoder | the decoder to reset. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
Calling this function resets the animation decoder, allowing it to start from the beginning again. This is useful if you want to decode the frame sequence again without creating a new decoder.
This function is available since SDL_image 3.4.0.