SFML community forums
Help => Graphics => Topic started by: inlinevoid on December 12, 2009, 05:47:42 am
-
Just a quick question... How would I go about displaying variables like int, float, double, etc.
This won't work: sf::String Player1Score(iScore, Font, 50);
Is there some separate function for displaying numbers instead of a string of text or do I have to manually convert the integer into a string before displaying it each time?
Thanks in advance.
-
Unless something has changed since 1.5, when I last used the sf::String class, you need to convert it manually first.
-
Alright thanks.
-
Unless something has changed since 1.5, when I last used the sf::String class, you need to convert it manually first.
When you use the latest SVN version, the class is now named sf::Text instead of sf::String. sf::String terms the unicode string class.