Jump to content
  • Advertisement
Sign in to follow this  
Giblodian

glTexEnvi problem

This topic is 3018 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

222        glEnable(GL_TEXTURE_2D)
223        glEnable(GL_BLEND)
224        glBindTexture(GL_TEXTURE_2D, 1)
225        glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE)
226        glColor4f(1, 1, 1, 1)
227        glBegin(GL_QUADS)
228        glTexCoord2d(0, 0)
229        glVertex2d(0, 0)
230        glTexCoord2d(1, 0)
231        glVertex2d(640, 0)
232        glTexCoord2d(1, 1)
233        glVertex2d(640, 480)
234        glTexCoord2d(0, 1)
235        glVertex2d(0, 480)
236        glEnd()
237        glDisable(GL_TEXTURE_2D)
Problem: Nothing drawn after this appears. I have a line strip which appears when this is commented out, but doesn't appear when in.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!