How do you display simple 2d text on an opengl screen, i want to display the score of a simple game program but dont know how to show the score up on screen in an opengl environment. can someone please help???

dvm

04-13-2005, 04:25 AM

Well, the simplest way would be to use glut if you're familiar with it (though I don't know for sure if yo can use its functions if you haven't created a window using glut, but chances are you can). On the other hand there are a few libraries out there that handle the font loading for you. I'm sorry but I can't remember any names.
As a last resort you could use the operating system's fonts along with wgl (or xgl) functions to create the glyphs. I don't think it's as hard as it sounds. Good luck!