Sign in to follow this  
fooman_69

Different window sizes = weird textures

Recommended Posts

fooman_69    174
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
ff8    134
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this