SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]
(This function is part of SDL_image, a separate library from SDL.)

IMG_CreateAnimatedCursor

Create an animated cursor from an animation.

Header File

Defined in <SDL3_image/SDL_image.h>

Syntax

SDL_Cursor * IMG_CreateAnimatedCursor(IMG_Animation *anim, int hot_x, int hot_y);

Function Parameters

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.

Return Value

(SDL_Cursor *) Returns the new cursor on success or NULL on failure; call SDL_GetError() for more information.

Version

This function is available since SDL_image 3.4.0.

See Also


CategoryAPI, CategoryAPIFunction, CategorySDLImage


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.