简体   繁体   中英

Java lwgjl2 change cursor image

I want to change the Cursor image in Java in my LWJGL project. But so far i only found solutions to do it with a GLFW Window, which i am not using.

I have really no idea how, since any attempt failed. please help

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);

Also, LWJGL 2 is not supported anymore and you should start using LWJGL 3.
https://github.com/LWJGL/lwjgl3-wiki/wiki/1.2.-Why-a-new-version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM