Text Question

Started by
1 comment, last by oggialli 18 years, 1 month ago
How would I display an FPS counter in the top right corner of my screen? What is the code or function for displaying text on the screen? Sorry for the newb question.
Advertisement
Try here: NeHe - in particular, lessons 13 and 14 which talk about bitmap fonts.

You could also try switching to an orthographic projection and then displaying the text in that mode (orthographic is 2-dimensional), which I think those tutorials do anyway, but oh well...
Try glutBitmapCharacter if you're using GLUT (google). However, if you ever need more printing than that, go for something like FTGL.
Olli Salli

This topic is closed to new replies.

Advertisement