A simple OpenGL text rendering demo
July 24, 2022I don’t have a graphics programming background, so it took time to figure out how to render text to a screen.
I finally figured it out, so I created a simple demo and uploaded it to Github. Hopefully, it will help someone trying to learn how to render text to a screen.
It’s written in C and all the code - with the exception of fetching the memory location of OpenGL functions - is in one file.
I’ve only run this on Linux. If you’re on Windows or Mac you might have to work through your own set of compiler errors.