Multitexture Confuse

Started by
0 comments, last by strtok 16 years, 11 months ago
glActiveTextureARB(GL_TEXTURE0_ARB); glEnable(GL_Texture_2D); glMultiTexcoord2fARB(GL_TEXTURE0_ARB,0,0); glVertex3f(10,10,0); ..... .... glDisable(GL_TEXTURE_2D); glTexCoord2f(0,0); glVertex3f(20,20,0); Do you know that I wanna Disable TEXTURE0 or Disable Texture MODE? Does it make sense if I put glDisable right after glActive... ,I guess that thanks
Advertisement
Calling glDisable(GL_TEXTURE_2D) will disable the currently active texture unit (in your example, that would be GL_TEXTURE0_ARB). If you want to disable a different texture unit, make that one active by calling glActiveTextureARB first. Once you call glDisable(GL_TEXTURE_2D), don't expect texturing to work on that unit. It is possible to have some units enabled and others disabled at the same time.

This topic is closed to new replies.

Advertisement