Colors

Hi, i was rendering an scene and want to make a texutred mesh and then draw the lines that define the mesh, that is the rendered and the grid, but when i specify a color for the grid all the scene is coloured with it… what should i do to make this work correctly?

Thanks all answers… :smiley:

Try reading up on GL_MODULATE, GL_DECAL and GL_BLEND
when used with glTexEnvi() and GL_TEXTURE_ENV_MODE.
You can also try Nate Robbin’s interactive tutors at:
http://www.xmission.com/~nate/tutors.html
which shows you visually the changes in parameters.