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

Author Topic: Any plans for sfml text to be opengl friendly  (Read 2426 times)

0 Members and 1 Guest are viewing this topic.

greeniekin

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Any plans for sfml text to be opengl friendly
« on: October 08, 2011, 03:42:39 pm »
I mainly use SFML to load images and use opengl context.
I would really like to use the amazing feature of SFML fonts. Much better than my bitmap fonts I use now.
Though the problem is it can only be drawn when using render window.

I could rewrite SFML:: text to allow this by copy and pasting it and just modifying Text::Render to use pure opengl commands. Though that seems like a real waste.

Is there any plans of making them friendly to both?

I mean you could have dummy
RenderTarget and Renderer to pass to sfml::Text and then you wouldn't need to change anything of sfml::Text and would allow any drawable object to work.
It would just need to not apply any predefined transformations like renderWindow does. That way transformations in opengl will effect the font and also wont effect other opengl settings.

I would be greatful of an ideas or suggestions.

frostwork

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://www.frostworx.de/
Any plans for sfml text to be opengl friendly
« Reply #1 on: October 08, 2011, 11:35:26 pm »
maybe not the answer you are looking for, but probably better than no answer at all.
you could use
FTGL:
http://sourceforge.net/projects/ftgl
or some parts of gource (older versions use ftgl,more recent have an own freetype implementation):
http://code.google.com/p/gource/

atm I use both (i.e. parts of older gource) in my typhon launcher.

 

anything