Create an encoder to save a series of images to a file.
Defined in <SDL3_image/SDL_image.h>
const char *file); IMG_AnimationEncoder * IMG_CreateAnimationEncoder(
const char * | file | the file where the animation will be saved. |
(IMG_AnimationEncoder *) Returns a new IMG_AnimationEncoder, or NULL on failure; call SDL_GetError() for more information.
The file type is determined from the file extension, e.g. "file.webp" will be encoded using WEBP.
This function is available since SDL_image 3.4.0.