gurkama
02-22-2005, 11:24 AM
Hi
I have a 3D scene which I want to add text to. I try to use something like this (after I finish with the scene):
glPushMatrix();
glLoadIdentity();
char* p = (char*) string;
while (*p != '\0')
glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, *p++);
glPopMatrix();
I see the string small and white, at the bottom-left corner of the screen. Changing the color, translating or scaling using
glColor3f, glTranslate3f and glScale3f simply did not change a thing.
Does anyone have a clue?
Thanks
I have a 3D scene which I want to add text to. I try to use something like this (after I finish with the scene):
glPushMatrix();
glLoadIdentity();
char* p = (char*) string;
while (*p != '\0')
glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, *p++);
glPopMatrix();
I see the string small and white, at the bottom-left corner of the screen. Changing the color, translating or scaling using
glColor3f, glTranslate3f and glScale3f simply did not change a thing.
Does anyone have a clue?
Thanks