Sign in to follow this  
PenguinGLX

Multitexture Confuse

Recommended Posts

PenguinGLX    100
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

Share this post


Link to post
Share on other sites
strtok    191
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this