PDA

View Full Version : How to display score



03-16-2002, 04:50 AM
Hihi
I'm a game developer Beginner. I'm using C++ wih OpenGL. Can anyone tell me how to display a game score, becoz game score are integer, I don't know how to display on screen

zeckensack
03-16-2002, 04:57 AM
sprintf(score_display,"Score, harr: %u",score);

Then display that string as text. At NeHe's site (http://nehe.gamedev.net/) , there are some nice tutorials on text rendering in OpenGL.