I'm pretty new to opengl but been using c++ for a while now. How can I display variables using this? I can display single characters by using
glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,'0');
Why can I not use
int x = 0;
glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,x);
Compiles but won't display anything.