A cursor, to be set in Window.cursor
.
To create a new cursor use GLFW.createStandardCursor
or GLFW.createCursor
.
Using the cursor after it was destroyed with Cursor.destroy
or after the GLFW object was destroyed with GLFW.destroy
will throw a UseAfterDestroyException
exception.
Methods
destroy():Void
Destroys the cursor.
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.
Using the object after this will throw a UseAfterDestroyException
exception.
Reentrancy: This function must not be called from a callback.
Thread safety: This function must only be called from the main thread.
Throws:
PlatformErrorException | |
---|---|
null | UseAfterDestroyException |