Function SDL_DestroyCursor

pub unsafe extern "C" fn SDL_DestroyCursor(cursor: *mut SDL_Cursor)
Available on crate feature dep_sdl3 only.
Expand description

Free a previously-created cursor.

Use this function to free cursor resources created with SDL_CreateCursor(), SDL_CreateColorCursor() or SDL_CreateSystemCursor().

§Parameters

  • cursor: the cursor to free.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.

§See also