glfwDestroyCursor

Destroys a cursor.

This function destroys a cursor previously created with @ref glfwCreateCursor. Any remaining cursors will be destroyed by @ref glfwTerminate.

If the specified cursor is current for any window, that window will be reverted to the default cursor. This does not affect the cursor mode.

extern (C) @nogc nothrow __gshared
void
glfwDestroyCursor

Parameters

cursor GLFWcursor*

The cursor object to destroy.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

@reentrancy This function must not be called from a callback.

Thread Safety

This function must only be called from the main thread.

@sa @ref cursor_object @sa @ref glfwCreateCursor

Meta

Since

Added in version 3.1.

Ingroup: input