neko
neko copied to clipboard
Change the mouse cursor to a mouse
The ebitengine does not support changing the mouse cursor, but there are some possibilities, the code below still needs to be tested.
unsigned char pixels[16 * 16 * 4];
memset(pixels, 0xff, sizeof(pixels));
GLFWimage image;
image.width = 16;
image.height = 16;
image.pixels = pixels;
GLFWcursor* cursor = glfwCreateCursor(&image, 0, 0);