Textures and Lines

Hi everybody,

I am drawing lines on some textures with glBegin(GL_LINES). The color of lines become darker in the darker areas, and lighter in the lighter areas of the texture. I want solid fixed color (red, blue, yellow, whatever I like) lines which will not change according to the pattern of the texture. How can I do that ?


Simply with disabling texturing before rendering the things you want untextured and choosing the appropriate color. Then re-enable texturing when you need them again.

It worked! Thank you very much!

You might also think about disabling lighting as well as texture while drawing you lines