Muszę wyśrodkować napisy w okienku. Czy istnieje jakaś fukcja w c++ lub sfml'u która zwraca ile pikseli ma dany ciąg tekstu?
0
0
- google.pl
- C++ get height of text in px
- https://www.google.pl/webhp?s[...]B%2B+get+height+in+px+of+text
- http://stackoverflow.com/ques[...]red-in-windows-using-drawtext
Nie znam C++, ale jak widac mozna cos znalezc :P
2
float width = text.getLocalBounds().width;