• Advertisement

Archived

This topic is now archived and is closed to further replies.

How to disable glBindTexture( ?

This topic is 6210 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

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

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
You don''t disable bindtexture.

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

- Peter

Share this post


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

Share this post


Link to post
Share on other sites
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/

Share this post


Link to post
Share on other sites

  • Advertisement