Java lwgjl2 更改光标图像
Java lwgjl2 change cursor image
我想在我的 LWJGL 项目中更改 Java 中的光标图像。但到目前为止,我只找到了使用 GLFW Window 的解决方案,我没有使用它。
我真的不知道怎么做,因为任何尝试都失败了。
请帮助
LWJGL 2.9.1
Cursor cursor = new Cursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays);
Mouse.setNativeCursor(cursor);
此外,不再支持 LWJGL 2,您应该开始使用 LWJGL 3。
https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Why-a-new-version
我想在我的 LWJGL 项目中更改 Java 中的光标图像。但到目前为止,我只找到了使用 GLFW Window 的解决方案,我没有使用它。
我真的不知道怎么做,因为任何尝试都失败了。 请帮助
LWJGL 2.9.1
Cursor cursor = new Cursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays);
Mouse.setNativeCursor(cursor);
此外,不再支持 LWJGL 2,您应该开始使用 LWJGL 3。
https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Why-a-new-version