示例#1
0
 /// <summary>
 /// Set current mouse cursor in the GLFW window.
 /// </summary>
 /// <param name="cursor">New mouse cursor to set.</param>
 public void SetCursor(CursorShape cursor)
 {
     if (currentCursor != IntPtr.Zero)
     {
         Glfw3.DestroyCursor(currentCursor);
     }
     currentCursor = Glfw3.CreateStandardCursor(cursor);
     Glfw3.SetCursor(hWin, currentCursor);
 }