LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: [solved] lwjgl v3 installation attempt  (Read 409 times)

AngleWyrm

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
[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?

Logged

Andrew Alfazy

  • Newbie
  • *
  • Offline Offline
  • Posts: 16
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;
Logged

Andrew Alfazy

  • Newbie
  • *
  • Offline Offline
  • Posts: 16
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
}
Logged

Cornix

  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 471
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.
Logged

AngleWyrm

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
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...
Logged