Jump to content

  • Log In with Google      Sign In   
  • Create Account


Easy resolution independant glRasterPos3f() position?


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 Ahl   Members   -  Reputation: 168

Like
0Likes
Like

Posted 21 August 2012 - 11:36 PM

Using glRasterPosxf() to position my text on my screen. I'm looking for a simple, reliable way to maintain text position despite screen resolution...

Help?

Thanks in advance.

Sponsor:

#2 SimonForsman   Crossbones+   -  Reputation: 6067

Like
0Likes
Like

Posted 21 August 2012 - 11:40 PM

use a fixed projection matrix, (I.E , pass a fixed "resolution" to glOrtho) Normally tutorials have you pass the Windows width and height to glOrtho when setting up 2D rendering, this isn't required, you can pass anything you want to it (so if you want 0.0 can be the bottom left and 1,1 the top right)

Edited by SimonForsman, 21 August 2012 - 11:42 PM.

I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!




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