Sign in to follow this  
Jacob Jingle

Best library for doing text in OpenGL

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
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
[quote name='zacaj' timestamp='1313523390' post='4849999']
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
[/quote]
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: [url="http://www.lighthouse3d.com/very-simple-libs/vsfl/"]http://www.lighthouse3d.com/very-simple-libs/vsfl/[/url]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this