Jump to content
  • Advertisement
Sign in to follow this  
mooserman352

glDrawPixels and Textures

This topic is 4919 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'm having a lot of problems with texture mapping. I'm not sure where the problem is, but I've tried a number of things that leads me to beleive that the problem is with the data that I'm feeding to glTexImage2D (I'm using my own bitmap loader). But the funny thing is that glDrawPixels has no trouble with the data. Do glDrawPixels and glTexImage2D expect the same type of data? Can I assume that my data is fine if for glTexImage2D if it works for glDrawPixels?

Share this post


Link to post
Share on other sites
Advertisement
Standard checks:

Are your textures a power of 2 in width and height?
Do you either disable mipmapping or generate mipmaps for your texture?
(Mipmapping is enabled by default)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!