Jump to content
  • Advertisement
Sign in to follow this  
fooman_69

Different window sizes = weird textures

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

hiya, I have an issue I would like to know the exact reason for. I am creating a 2D game tiling Quads on a simple map. The quads are quite small, and it tends to make my BMPs look different than initially expected. I can live with that, but the issue arises when the user resizes the window, the textured quads now display the BMPs that are skewed differently. Also, to show the user their level of power, life, etc, I simply draw lines in a for loop based on the value. It looks fine in the initial window state, but when the scene is resized differently, there are gaps between some of the lines. Why would this happen?? What should I be looking at to fix this?

Share this post


Link to post
Share on other sites
Advertisement
Make a resize function check NeHe tutorials about this.

-Edit:
About the texture make sure you setup this flag GL_TEXTURE_MAG_FILTER .
bye

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!