LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: AngleWyrm on August 09, 2017, 00:21:54

Title: [solved] lwjgl v3 installation attempt
Post by: AngleWyrm on August 09, 2017, 00:21:54
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?

(https://s6.postimg.org/coe3ls9u9/glfw.png)
Title: Re: lwjgl v3 installation attempt
Post by: Andrew Alfazy on August 09, 2017, 04:06:43
In LWJGL Window Data Stores in float not in int
Code: [Select]
private long windowHandle;Not
Code: [Select]
private int windowHandle;
Title: Re: lwjgl v3 installation attempt
Post by: Andrew Alfazy on August 09, 2017, 06:52:16
And you forget to add this libraries{
lwjgl-glfw-natives-windows.jar
lwjgl-opengl-natives-windows.jar
}
Title: Re: lwjgl v3 installation attempt
Post by: Cornix on August 09, 2017, 06:58:40
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.
Title: Re: lwjgl v3 installation attempt
Post by: AngleWyrm on August 09, 2017, 12:10:05
Thanks guys, your assistance made a success.
I added the glfw native jar to my library and used import static.

(https://s6.postimg.org/6js3oy501/importstatic.png)

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