How to disable glBindTexture( ?

Started by
6 comments, last by Lucien 23 years, 2 months ago
Hello I need how to disable the function glBindTexture( after enable it before. I would like to put textured objects and after non-textured objects. How must I do please ? Thanks Lucien
Advertisement
You don''t disable bindtexture.

you call...
glEnable (GL_TEXTURE_2D);
...to enable texturing, and...
glDisable (GL_TEXTURE_2D);
...to disable it.

- Peter
okay, thanks a lot !
doesn''t putting NULL as the texture work too? that''s what i do. or maybe that''s messing something up?


thuned

life is unfair, take advantage of it.
UNMB2 - if the link doesn''t work, try clicking it
life is unfair, take advantage of it.UNMB2 - if the link doesn't work, try clicking it :)
Thuned, here''s a quote from the MSDN:
"... the binding reverts to zero (the default texture)."

And since NULL equals zero, I quess that means you''re selecting the default texture, which is probably slower than just disabling GL_TEXTURE_2D (glBindTexture is kind of slow) . An OpenGL expert would be more qualified that I am to answer this though.


http://www.gdarchive.net/druidgames/
Hey man, your url won''t work
Yeah, I''m waiting for The_Enemy to get gdarchive on to a new server, so that it isn''t dead anymore, heh.


http://www.gdarchive.net/druidgames/
dont bind with 0
the driver writers dont like it

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement