destroy method
void
destroy()
Free a previously-created cursor.
Use this function to free cursor resources created with SDL_CreateCursor(), SDL_CreateColorCursor() or SDL_CreateSystemCursor().
\param cursor the cursor to free.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.2.0.
\sa SDL_CreateAnimatedCursor \sa SDL_CreateColorCursor \sa SDL_CreateCursor \sa SDL_CreateSystemCursor
extern SDL_DECLSPEC void SDLCALL SDL_DestroyCursor(SDL_Cursor *cursor)
{@category mouse}
Implementation
void destroy() {
sdlDestroyCursor(this);
}