Skip to content

Learn OpenGL with Java

Posted on: August 19, 2021 at 12:00 AM

Howdy folks!

 

I ported the popular C++ OpenGL tutorial to Java and LWJGL.

 

Java has an active ecosystem of build tools, IDEs and libraries that help devs remove the usual blockers that hinder native projects. With Java, it’s easier to not reinvent the wheel and instead focus on learning OpenGL and patterns used in graphics and game programming. I would still heavily recommend the orignal C++ tutorial, as it gives a deep dive on the graphics pipeline specified in OpenGL and a good introduction on GLSL.

 

The code tutorial is built with gradle and for the best developer experience, I would use IntelliJ. The tutorial has a console application Main in which the user can specify which chapter they wish to demo.

 

I hope someone can find this tutorial useful and fun to read as it was for me to write.

 

-K