Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

OpenGl- making values screen independent

4: Adsense

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   

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.


#2 Brother Bob   Moderators   

10278
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.