Jump to content
  • Advertisement
Sign in to follow this  
Kyo

How to display non-alphanumeric characters in opengl?

This topic is 4903 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'm using NeHe's glPrint("hello number %3.2f", i) to print fonts in OpenGL. I was wondering how would I print characters from the ANSI character set which aren't on my keyboard? I really need to be able to print a small triangle, as in delta x, is that in the character set? If so, how do I use it? Thanks for your help.

Share this post


Link to post
Share on other sites
Advertisement
If you use a "normal" (rather than two-font) texture map, and you want just an extra charcter or two, you could replace an unused charcter in the texture with your symbol and use an escape sequence in your string to identify the charcter.

I don't know of a good way to get a full, unicode font going.

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!