PDA

View Full Version : Displaying text that is uneffected by lights



naunga
12-20-2003, 05:31 PM
Hi,

Just a quick question. I am using a bitmapped font to display some text in my OpenGL window. The problem is that it's being effected by the lights, and because of it's position in the window is hard to see unless lighting is disabled.

How can I display some text on the screen that is not affected by the lights.

Thanks.

Aaron

dj_indo_420
12-20-2003, 07:31 PM
i think this might work
glPushAttrib(GL_LIGHTING_BIT);
glDisable(GL_LIGHTING);
drawText();
glPopAttrib();