Jump to content

  • Log In with Google      Sign In   
  • Create Account


OpenGl- making values screen independent


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 itsme25   Members   -  Reputation: 104

Like
0Likes
Like

Posted 07 September 2012 - 11:26 PM

In my OpenGL 2D application, i have a number of objects on screen and their coordinate values are based on my systems resolution. How do i optimize their positions for all resolutions? I mean, i want them to be independent of any particular screen size, so that they stay at proportionate distances on any screen, as designed during development.Are there any functions which can take care of the matter?

Edited by itsme25, 07 September 2012 - 11:29 PM.


Sponsor:

#2 Brother Bob   Moderators   -  Reputation: 7784

Like
1Likes
Like

Posted 08 September 2012 - 12:14 AM

Just don't pass actual screen resolution to glOrtho to setup the coordinate system, but instead use the fixed design resolution you have.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS