Ejemplo n.º 1
0
 /*! @brief Sets the cursor for the window.
  *
  *  This function sets the cursor image to be used when the cursor is over the
  *  client area of the specified window.  The set cursor will only be visible
  *  when the [cursor mode](@ref 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.
  *
  *  @param[in] window The window to set the cursor for.
  *  @param[in] cursor The cursor to set, or `NULL` to switch back to the default
  *  arrow cursor.
  *
  *  @par Thread Safety
  *  This function may only be called from the main thread.
  *
  *  @sa @ref cursor_object
  *
  *  @since Added in GLFW 3.1.
  *
  *  @ingroup input
  */
 internal static extern void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor);
Ejemplo n.º 2
0
 /*! @brief Destroys a cursor.
  *
  *  This function destroys a cursor previously created with @ref
  *  glfwCreateCursor.  Any remaining cursors will be destroyed by @ref
  *  glfwTerminate.
  *
  *  @param[in] cursor The cursor object to destroy.
  *
  *  @par Reentrancy
  *  This function may not be called from a callback.
  *
  *  @par Thread Safety
  *  This function may only be called from the main thread.
  *
  *  @sa @ref cursor_object
  *  @sa glfwCreateCursor
  *
  *  @since Added in GLFW 3.1.
  *
  *  @ingroup input
  */
 internal static extern void glfwDestroyCursor(GLFWcursor* cursor);