setting the position in different resolution

Posted by Moaz on Game Development See other posts from Game Development or by Moaz
Published on 2012-10-23T20:35:40Z Indexed on 2012/10/23 23:20 UTC
Read the original article Hit count: 153

Filed under:
|

I have a normal game window which is 640*480, and everything is fine, but when I try to maximize the window, the objects translate to different positions on the screen, for example If I have a circle which is drawn at the center in the normal window, when I try to maximize it, it shifts away from the center of the screen. How do I adjust it so it draws at the center in both normal window and maximized window ?

© Game Development or respective owner

Related posts about opengl

Related posts about math