textures

F923e021a633170fb10416df23dffddd
0
urika 101 Jul 10, 2003 at 12:24

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?

3 Replies

Please log in or register to post a reply.

6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Jul 10, 2003 at 13:01

you set color back to white before drawing the quad?

Db7c6256c6650d0a94ac64a980503733
0
MA_Mestre 101 Jul 11, 2003 at 09:43

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…

F923e021a633170fb10416df23dffddd
0
urika 101 Jul 16, 2003 at 12:41

thank u! ,i found the answer myself though (the white thing of course) :blush: