Free a previously-created cursor.
Defined in <SDL3/SDL_mouse.h>
void SDL_DestroyCursor(SDL_Cursor * cursor);
cursor | the cursor to free |
Use this function to free cursor resources created with SDL_CreateCursor(), SDL_CreateColorCursor() or SDL_CreateSystemCursor().
This function is available since SDL 3.0.0.
CategoryAPI, CategoryAPIFunction