Jump to content
  • Advertisement
Sign in to follow this  
Jacob Jingle

Best library for doing text in OpenGL

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

What's the best c++ library for doing anti-aliased text in OpenGL?

Best = portable to Windows and Linux, easy to use, doesn't use deprecated code, makes it easy to deal with user changing font, fast, opengl 4.1-2 glsl 4.1, etc.

Share this post


Link to post
Share on other sites
Advertisement
Its surprisingly easy to write your own using Freetype. If youre looking for a regular library, well also need to know what version of openGL youre targetting. Most dont work with 1,2,3, and 4

Share this post


Link to post
Share on other sites
Pango/Cairo. Drop it on a texture. Draw it to your screen. Cross platform. Renders everything from plain text up to simple HTML markup. Handles i18n. Everyone always ignores this recommendation without trying it I don't know why.

Share this post


Link to post
Share on other sites

Its surprisingly easy to write your own using Freetype. If youre looking for a regular library, well also need to know what version of openGL you're targeting. Most don't work with 1,2,3, and 4

I'm looking to go with 4.1 and up.

Share this post


Link to post
Share on other sites
In that case, youre going to have trouble finding any libraries. I had this problem a few months ago, and if I remember, I only even found one library that supported 3.0+ (3/4 should be compatable) Im trying to find that one, but Im not having much luck. Your best bet is to just write something yourself, its only like 300 lines of code for a complete text class

EDIT: http://www.lighthouse3d.com/very-simple-libs/vsfl/

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!