Java Code Examples for org.lwjgl.glfw.GLFW#glfwDestroyCursor()

The following examples show how to use org.lwjgl.glfw.GLFW#glfwDestroyCursor() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Lwjgl3Mini2DxCursor.java    From mini2Dx with Apache License 2.0 5 votes vote down vote up
@Override
public void dispose() {
	if (pixmapCopy == null) {
		throw new GdxRuntimeException("Cursor already disposed");
	}
	cursors.removeValue(this, true);
	pixmapCopy.dispose();
	pixmapCopy = null;
	glfwImage.free();
	GLFW.glfwDestroyCursor(glfwCursor);
}
 
Example 2
Source File: Lwjgl3Mini2DxCursor.java    From mini2Dx with Apache License 2.0 4 votes vote down vote up
static void disposeSystemCursors() {
	for (long systemCursor : systemCursors.values()) {
		GLFW.glfwDestroyCursor(systemCursor);
	}
	systemCursors.clear();
}