Jump to content
  • Advertisement
Sign in to follow this  
JemC

Should I use LWJGL 2 OR LWJGL 3?

This topic is 872 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone used both and can give me some insight to their take on the differences?

Share this post


Link to post
Share on other sites
Advertisement

It depends on a couple things.

 

1st. LWJGL3 is based on the GLFW library, so any documentation for GLFW will usually hold true with LWJGL3

2nd. LWJGL3 is much newer relatively speaking, consequentially, you're far more likely to find more tutorial resources on 2 than 3.

3rd. As they both utilize OpenGL for rendering, there really isn't much difference between the two aside from how they handle the window context.

Edited by GutenTag

Share this post


Link to post
Share on other sites

LWJGL 3. All the nice stuff is getting developed there (GLFW for window/input management, new bindings like nanovg, stb, jemalloc, vulkan, etc).

 

LWJGL 2 has an awful windowing/input api.

 

That being said, 90% the time you'll be dealing with OpenGL, not the paticulars of LWJGL, and you better get used to find OpenGL resources in other languages (mostly C++) and then translating those concepts to Java.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!