PDA

View Full Version : textures


urika
07-10-2003, 06:24 AM
hi,
i drew a quad and textured it , now i want to draw some red lines,
if i disable(GL_TEXTURE_2D) and draw the lines ,they are red but when i resize the window the texured quad becomes red as well.
any suggestions?

davepermen
07-10-2003, 07:01 AM
you set color back to white before drawing the quad?

MA]Mestre
07-11-2003, 03:43 AM
like davepermen said, set white color before draw the textured quad

Maybe this...


...
glColor3u (255,255,255)
glEnable (G_TEXTURE2D)
DrawQuad ....
glDisable (G_TEXTURE2D)
glColor3u (255,0,0)
DrawRedLines...
...

urika
07-16-2003, 06:41 AM
thank u! ,i found the answer myself though (the white thing of course) :blush: