Should I use LWJGL 2 OR LWJGL 3?

Started by
1 comment, last by TheChubu 7 years, 11 months ago

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

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.

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.

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

My journals: dustArtemis ECS framework and Making a Terrain Generator

This topic is closed to new replies.

Advertisement