glfwCreateStandardCursor

Creates a cursor with a standard shape.

Returns a cursor with a standard shape, that can be set for a window with @ref glfwSetCursor.

extern (C) @nogc nothrow __gshared
glfwCreateStandardCursor
(
int shape
)

Parameters

shape int

One of the standard shapes.

Return Value

Type: GLFWcursor*

A new cursor ready to use or null if an error occurred.

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

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