sdlFreeCursor function

void sdlFreeCursor(
  1. Pointer<SdlCursor> cursor
)

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

\since This function is available since SDL 2.0.0.

\sa SDL_CreateColorCursor \sa SDL_CreateCursor \sa SDL_CreateSystemCursor

extern DECLSPEC void SDLCALL SDL_FreeCursor(SDL_Cursor * cursor)

Implementation

void sdlFreeCursor(Pointer<SdlCursor> cursor) {
  final sdlFreeCursorLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<SdlCursor> cursor),
      void Function(Pointer<SdlCursor> cursor)>('SDL_FreeCursor');
  return sdlFreeCursorLookupFunction(cursor);
}