Eai! Olha pra escrever texto simples com a GLUT eu fiz essa função qui:
Code:
GLint glPrintf(GLint x, GLint y, const char * format, ...)
{
char buffer[2048];
va_list vaList;
GLint nCount, i;
va_start(vaList, format);
nCount = vsnprintf(buffer, sizeof(buffer), format, vaList);
va_end(vaList);
glRasterPos2i(x, y);
for (i = 0; i < nCount; ++i)
{
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, buffer[i]);
}
return (nCount);
}
Funciona igual a famosa printf() do C. Pra usar vc vai ter que estar com uma projeção 2D setada, para isto, use a glOrtho(). E claro inclua a glut.h e stdio.h para compilar sem problemas.
Até.