Create an animated cursor from an animation.
Defined in <SDL3_image/SDL_image.h>
SDL_Cursor * IMG_CreateAnimatedCursor(IMG_Animation *anim, int hot_x, int hot_y);| IMG_Animation * | anim | an animation to use to create an animated cursor. |
| int | hot_x | the x position of the cursor hot spot. |
| int | hot_y | the y position of the cursor hot spot. |
(SDL_Cursor *) Returns the new cursor on success or NULL on failure; call SDL_GetError() for more information.
This function is available since SDL_image 3.4.0.