I am aware that OpenGL does not directly support the displaying of text, and I found this funtion, but this isnt OpenGL specific, so I thought I would post this here
My problem is that I need to print an int, and itoa is not an ANSI standard. How else would I be able to print an int using the funtion above?
DrawText(GLint x, GLint y, char* s, GLfloat r, GLfloat g, GLfloat b)
0.0, glutGet(GLUT_WINDOW_HEIGHT), -1.0, 1.0);
for(p = s, lines = 0; *p; p++)
if (*p == '\n')