public static Cursor CreateCursor(Image image, int xHotspot, int yHotspot) { unsafe { fixed(byte *data = image.data) { NativeImage nimg = new NativeImage(image.width, image.height, data); NativeImage *ptr = &nimg; var result = glfwCreateCursor(ptr, xHotspot, yHotspot); CheckError(); return(result); } } }
public static extern void glfwSetWindowIcon(WindowPtr window, int count, NativeImage *images);
public static extern Cursor glfwCreateCursor(NativeImage *image, int xHotspot, int yHotspot);