Sign in to follow this  
Flawe

2D text color problem

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this