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?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=C%2B%2B+get+height+in+px+of+text
- http://stackoverflow.com/questions/29100893/how-to-find-the-exact-pixel-height-of-text-rendered-in-windows-using-drawtext
Nie znam C++, ale jak widac mozna cos znalezc :P
2
float width = text.getLocalBounds().width;