Archived

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

glGenTextures questions

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

I''ve been trying to add texture mapped font to my program and have come across some weird problem. Does anyone knows what sort of things (functions, constants have to be set up before glGenTextures start returning correct result? I am currently using SDL, and it seems to me this only occurs once the video mode has been set on the main surface, this however seems to cause anything other than the textured surface (a quad) to disappear, very ordd. i haven''t posted any code since it is very messy with function pointers and things, will probably only confuse the issue

Share this post


Link to post
Share on other sites
If one portion of your texture is black (or the same color of the background) it could be that untextured images are becoming all black and vanishing into it. Make sure you disable texture mapping before drawing untextured objects, just not providing texture coordinates won''t work

Share this post


Link to post
Share on other sites