SFML и C++ Уроки \ Разработка игр › Форумы › SFML Graphics › Class Text › Ответ в теме: Class Text
Решил добавить свой изменённый фрагмент кода:
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
class MainText { public: Text text; MainText(const string &sText, const Font &font, unsigned int iSize, const Color &cColor, const Uint32 &uStyle, float x, float y) { text.setString(sText); text.setFont(font); text.setCharacterSize(iSize); text.setFillColor(cColor); text.setStyle(uStyle); text.setPosition(Vector2f(x, y)); } }; |