IMG_CreateAnimatedCursor - Man Page
Create an animated cursor from an animation.
Synopsis
#include <SDL3_image/SDL_image.h> SDL_Cursor * IMG_CreateAnimatedCursor(IMG_Animation *anim, int hot_x, int hot_y);
Function Parameters
- anim
an animation to use to create an animated cursor.
- hot_x
the x position of the cursor hot spot.
- hot_y
the y position of the cursor hot spot.
Return Value
Returns the new cursor on success or NULL on failure; call SDL_GetError() for more information.
Availability
This function is available since SDL_image 3.4.0.
See Also
IMG_LoadAnimation(3), IMG_LoadAnimation_IO(3), IMG_LoadAnimationTyped_IO(3)
Referenced By
IMG_LoadAnimation(3), IMG_LoadAnimation_IO(3), IMG_LoadAnimationTyped_IO(3).
SDL_image 3.4.0 SDL_image3 FUNCTIONS