Jump to content
  • Advertisement
Sign in to follow this  
vbms

gl ui's drawing texture to screen

This topic is 4492 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

hey, im trying to update my ingame gui class ATM i draw textures to rectangles and position them as close as possible to the screen... i noticed that running a game of mine on a pc with lower or higher screen resolution or resizing the window makes the ui look realy bad... what i am trying to do now is draw textures directly to the screen, hmm iv googled it several houres and find the same stuff about drawing to the frame buffer... it would be realy helpful if some could recomend ways of making nice ui's in gl, just drop a function if u like, give me a search word... or flame me for being stupid if u like :)

Share this post


Link to post
Share on other sites
Advertisement
What you need to do is switch to an orthogonal projection matrix, disable depth testing, then render your interface. It's a lot easier than trying to determine where things should be, then hoping they render correctly.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!