How to disable glBindTexture( ?
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
February 16, 2001 06:45 PM
You don''t disable bindtexture.
you call...
glEnable (GL_TEXTURE_2D);
...to enable texturing, and...
glDisable (GL_TEXTURE_2D);
...to disable it.
- Peter
you call...
glEnable (GL_TEXTURE_2D);
...to enable texturing, and...
glDisable (GL_TEXTURE_2D);
...to disable it.
- Peter
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
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/
"... 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/
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/
http://www.gdarchive.net/druidgames/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement