hello, I would like to know how to print text in open gl, the idea is to show an information on the screen.
I wonder if this code helps me.
void mostra_text(char cadena[], float x, float y) {
int tmp;
for(tmp=0; tmp < strlen(cadena); tmp++) { glRasterPos2f( x + tmp*ESPAI, y );
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_10,(int)cadena[tmp]);
}
}

