Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Loading a TFF with sf::Font and rendering in 3D with OpenGL?  (Read 1374 times)

0 Members and 1 Guest are viewing this topic.

kurozael

  • Newbie
  • *
  • Posts: 11
    • View Profile
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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Loading a TFF with sf::Font and rendering in 3D with OpenGL?
« Reply #1 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.
Laurent Gomila - SFML developer

kurozael

  • Newbie
  • *
  • Posts: 11
    • View Profile
Loading a TFF with sf::Font and rendering in 3D with OpenGL?
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Loading a TFF with sf::Font and rendering in 3D with OpenGL?
« Reply #3 on: August 12, 2011, 01:36:48 pm »
This kind of thing should be possible after I redesign the graphics API.
Laurent Gomila - SFML developer

 

anything