Help with OpenGL texturing...
Here is my situation...
I''m drawing a quad with a texture on it and then some text (from a text library) on top of it.
The first pass works just fine, but for some reason the second time around when I go to render the quad with the texture on it, it won''t show the texture, instead it renders the poly''s with whatever the current color is set to.
What state do I need to enable/disabe????
Thanks,
~S''Greth
Just make sure the GL_TEXTURE_2D is still enabled, I think that''s what you''re asking for.
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://druidgames.cjb.net/
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://druidgames.cjb.net/
Yeah, I do have it on...any other suggestions. Basically, how can I turn *OFF* vertex coloring all together so that I can guarantee that I''m only working with textures when it comes to the final color put into the display buffer?
Thanks again,
~S''Greth
Thanks again,
~S''Greth
Make sure that the unsigned int that is your texture object is static.... unless its global of course, your texture could be being deleted when it hops out of the rendering loop if its not.
This is probably a silly answer, but are you making sure that you''re binding the texture you want for the polygon before you render it for each frame? It''s possible that this library binds the default texture (0) after it''s done, and if you''re not re-binding the texture you want for each frame, it won''t show up. Otherwise...I have no idea what the problem might be.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement