Jump to content
  • Advertisement

Archived

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

32-bit texture problem?

This topic is 5598 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 debug my font class for the last 3 hours but I cannot figure out what's wrong. I create a font using a 32-bit texture and then store it in a display list. Everything seems to be working fine until I try to print some text. Instead of showing text, it shows white boxes where it should be characters. Really weird. glGetError() shows no errors! I generate the texture with glTexImage2D() and since it's a 32-bit texture I use GL_RGBA. The width and height of the TGA file I'm loading is a power of 2. (256x256) But here's the weirdest thing, if I replace glTexImage2D() with gluBuild2DMipmaps() it suddenly works but with mipmapped textures(which look awful). But if I draw just the loaded TGA to the screen using glDrawPixels() it displays the TGA file perfectly. There's something fishy about glTexImage2D(), that's for sure. What do you think? Thanks in advance, charlieC [edited by - charlieC on January 21, 2003 9:36:36 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!