Free a previously-created cursor.
Defined in <SDL3/SDL_mouse.h>
void SDL_DestroyCursor(SDL_Cursor *cursor);
SDL_Cursor * | cursor | the cursor to free. |
Use this function to free cursor resources created with SDL_CreateCursor(), SDL_CreateColorCursor() or SDL_CreateSystemCursor().
This function should only be called on the main thread.
This function is available since SDL 3.1.3.