2D text color problem
How come I can't chagne the color with which I render the text, but everything else changes color?
Here's my code:
GLUT glut = new GLUT();
int font = GLUT.BITMAP_HELVETICA_18;
gl.glColor3f(0,1,1);
gl.glRasterPos3f(10, 20, 0);
glut.glutBitmapString(gl, font, "Text");
The text is black in the upper left corner but everything else get a greenish layer on top. What am I doing wrong??
Thanx
That means the whole text will be textured using whatever texture coordinate was set before the call to glRasterPos. Try disabling texturing before rendering the bitmap text :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement