[solved] lwjgl v3 installation attempt

Started by AngleWyrm, August 09, 2017, 00:21:54

Previous topic - Next topic

AngleWyrm

I've set up a library (with source and javadoc attachments), but my GUI declares that it is confused about what "glfwGetKey" means.
What do I have to do to get it to recognize?


Andrew Alfazy

In LWJGL Window Data Stores in float not in int
private long windowHandle;

Not
private int windowHandle;

Andrew Alfazy

And you forget to add this libraries{
lwjgl-glfw-natives-windows.jar
lwjgl-opengl-natives-windows.jar
}

Cornix

You also need to "import static" those libraries instead of just regular imports. All the GLFW methods are static methods and the constants are public static finals.

AngleWyrm

Thanks guys, your assistance made a success.
I added the glfw native jar to my library and used import static.



That import line though... glfw.GLFW.glfw...