Hello Guest

[solved] lwjgl v3 installation attempt

  • 4 Replies
  • 1100 Views
[solved] lwjgl v3 installation attempt
« 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?

« Last Edit: August 09, 2017, 12:38:47 by AngleWyrm »

Re: lwjgl v3 installation attempt
« Reply #1 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;

Re: lwjgl v3 installation attempt
« Reply #2 on: August 09, 2017, 06:52:16 »
And you forget to add this libraries{
lwjgl-glfw-natives-windows.jar
lwjgl-opengl-natives-windows.jar
}

*

Offline Cornix

  • *****
  • 478
Re: lwjgl v3 installation attempt
« Reply #3 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.

Re: lwjgl v3 installation attempt
« Reply #4 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.



That import line though... glfw.GLFW.glfw...
« Last Edit: August 09, 2017, 12:34:19 by AngleWyrm »