• Advertisement
Sign in to follow this  

positioning text

This topic is 4005 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello to display text, i'm using glRasterPos2f(,) to set the position and then glutBitmapCharacter to actually render the text. the problem is that the position depends on the window size. if, for example, i want a message to appear in the exact middle of the screen - it moves a bit when changing the window size. any idea how to solve it?

Share this post


Link to post
Share on other sites
Advertisement
Store your window's height and width values (modify them when your window is resized such that these variables are always "correct"..) and computer the relevant coordinates from there.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement