Jump to content
  • Advertisement
Sign in to follow this  
snowfell

HUD for displaying variables

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

I have been working on a 3d game (well its not a game yet just the forming of one). So far I have a decent system setup for window rendering and projection, in other words I have the basics cover in most areas. The problem is that I need a really simple HUD system just for displaying variables just so I can make sure all my functions are running correctly. I would like to do this all in one function if possible. I know that I need to setup so that in this function it switches to glortho instead of glperspective. But what I need help with is a really simple way of printing variables to a given x and y coordinate. Is their anyway easy way of archiving this? I am sure this is a really easy fix but that is of course for someone that no what they are doing. Thanks

Share this post


Link to post
Share on other sites
Advertisement
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=14

Look here, thats a quite simple example for using Fonts in OpenGL.
regards

Share this post


Link to post
Share on other sites
well the problem with that example is that it is 3d lettering. Is their a simpler way of displaying 2d text (nothing special at all, just like a default font). Or will I have to all this just for a simple display of text?

How is this done in a windows app (win32). Is it this complicated or is it simpler?

Share this post


Link to post
Share on other sites
I would suggest either a simple bitmap font, good for the basics when you start:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=13

Or even better, you can use the FreeType library which loads and displays .ttf files (I use this one).
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=43

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!