On screen font colour

Started by
0 comments, last by Deline 19 years, 10 months ago
Hi, I have the following code in my display function: glPushMatrix(); glDisable(GL_TEXTURE_2D); int k; char *text = "SCORE"; glRasterPos3f(x,y,z); for(k=0; k<(int)strlen(text); k++) glutBitmapCharacter(TIMES_ROMAN, text[k]); glPopMatrix(); The code works fine but the writing is displayed in black (hard to see). I tried to put glColor3f(1.0, 0.0, 0.0) in front of glutBitmapCharacter() but it didn''t work, any suggestions? Alternatively how can I set the colour of a viewport? Thanks
Advertisement
I don''t have a retort for the first question but for the second one, do you mean this?

"glClearColor(0.0f, 0.0f, 0.0f, 0.5f);"

This topic is closed to new replies.

Advertisement