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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Raidenkk

Pages: [1]
1
Graphics / Integer to sf::Text
« on: May 09, 2012, 10:03:16 am »
I want to put an integer on my screen. Can somebody explain me, how i do it?

2
General / SFML Intenger to sf::String?
« on: January 02, 2012, 03:59:57 pm »
Hey i have test it andy my Compiller says no. why?

Code: [Select]
int test = 32;
std::string sString_Spieler_Level = std::to_string(test); // <---fail

sf::String String_Level;
String_Level.SetFont (Font_Naruto);
String_Level.SetPosition (310,115);
String_Level.SetSize (20);
String_Level.SetColor (sf::Color::Yellow);
String_Level.SetText (sString_Spieler_Level);

3
General / SFML Intenger to sf::String?
« on: December 26, 2011, 05:43:54 pm »
How become the String in my sf::string

Code: [Select]
// Level
std::string sString_Level( int Spieler_Level );
sf::String String_Level;
String_Level.SetFont (Font_Naruto);
String_Level.SetPosition (310,115);
String_Level.SetSize (20);
String_Level.SetColor (sf::Color::Yellow);

switch (Spieler_Level)
{
case 1:
{
String_Level.SetText ("TEST");
} break;
}
App.Draw (String_Level);

4
General / SFML Intenger to sf::String?
« on: December 26, 2011, 05:42:52 am »
I mean sf::String not the normal string.
I will my Intenger to sf::String transform.

String.SetText (Level);
is not so...

5
General / SFML Intenger to sf::String?
« on: December 26, 2011, 03:27:55 am »
Hey,
how can transform my Intenger Variable to a sf::String?

My example:
  int Level = 5;
 
  sf::String String;
  String.SetText (Level);

Pages: [1]
anything