I'm trying to render text in LWJGL 3 using non-deprecated OpenGL. I cannot use Slick-Util, which relies on older versions of LWJGL and deprecated OpenGL.
I would use FreeType if I was writing in standard C++ OpenGL, but I cannot. So how would I begin to create a class that can handle text rendering, with support for:
Does anyone have any good resources on this subject, preferably in Java and LWJGL?
LWJGL3 has a built in binding to STB which can load TTF font files, there are examples in the LWJGL3 repo which show you how to render text using it.
Further details and examples for the same can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With