SFML community forums

Help => Graphics => Topic started by: kurozael on July 24, 2011, 02:13:05 pm

Title: Loading a TFF with sf::Font and rendering in 3D with OpenGL?
Post by: kurozael on July 24, 2011, 02:13:05 pm
Is this possible? How would I go about doing it. My reasoning for this is that I'd rather use SFML's font loading for TTF's than write my own or get some other external lib.

Thanks!
Title: Loading a TFF with sf::Font and rendering in 3D with OpenGL?
Post by: Laurent on July 24, 2011, 03:21:57 pm
Take a look at sf::Font's public fonctions, as well as how sf::String uses it.

However you might need to use SFML 2, the interface of sf::Font in SFML 1 might be too limited.
Title: Loading a TFF with sf::Font and rendering in 3D with OpenGL?
Post by: kurozael on August 12, 2011, 01:31:03 pm
Would you be able to add the ability to render sf::Text without preserving states or whatever.

So that we could render it at a 3D location, or a 2D location on the screen but at any point during our OpenGL drawing.

I'm simply only using SFML for window management, input and fonts. Thanks a bunch.
Title: Loading a TFF with sf::Font and rendering in 3D with OpenGL?
Post by: Laurent on August 12, 2011, 01:36:48 pm
This kind of thing should be possible after I redesign the graphics API.