Jump to content


textures


3 replies to this topic

#1 urika

    Member

  • Members
  • PipPip
  • 54 posts

Posted 10 July 2003 - 12:24 PM

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?

#2 davepermen

    Senior Member

  • Members
  • PipPipPipPip
  • 1306 posts

Posted 10 July 2003 - 01:01 PM

you set color back to white before drawing the quad?
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#3 MA-Mestre

    New Member

  • Members
  • PipPip
  • 14 posts

Posted 11 July 2003 - 09: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...
...

#4 urika

    Member

  • Members
  • PipPip
  • 54 posts

Posted 16 July 2003 - 12:41 PM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users