How to do OpenGL live text-rendering for a GUI?
EDIT2: Sean Barrett just released Bitmap fonts for C/C++ 3D programmers. EDIT: another code gem that’s worth a look is Font Stash which leverages Sean Barrett’s stb_truetype.h. You can create a texture in which you render all the characters of your font. Then you just draw textured quads with orthographic projection and proper texture coordinates: … Read more