Original Post
Hi, I'm trying to display many numbers on the screen, and I only know the way that is considered dumb and inefficient. if (numb == 1) { glutBitmapCharacter(GLUT_BITMAP_9_BY_15 , '1'); } else if (numb == 2) { glutBitmapCharacter(GLUT_BITMAP_9_BY_15 , '2'); } else if (numb == 3) { glutBitmapCharacter(GLUT_BITMAP_9_BY_15 , '3'); } . . . else if (numb == 10) { glutBitmapCharacter(GLUT_BITMAP_9_BY_15 , '1'); glutBitmapCharacter(GLUT_BITMAP_9_BY_15 , '0'); } else if (numb == 11) { glutBitmapCharacter(GLUT_BITMAP_9_BY_15 , '1'); glutBitmapCharacter(GLUT_BITMAP_9_BY_15 , '1'); } . . . continues up to 500 Is there better way of doing this? If I just use the variable numb in the glutBitmapCharacter bracket, it just displays weird symbols. Thanks!