glfwSetCursor¶
Sets the cursor for the window.
This function sets the cursor image to be used when the cursor is over the
content area of the specified window. The set cursor will only be visible
when the cursor mode
of the window is
GLFW_CURSOR_NORMAL
.
On some platforms, the set cursor may not be visible unless the window also has input focus.
- arguments
-
\GLFWwindow
$window
The window to set the cursor for.\GLFWcursor
$cursor
The cursor to set, orNULL
to switch back to the default arrow cursor.
- returns
-
void