SFML 3 Как иметь дело с текстами в прямоугольникеC++

Программы на C++. Форум разработчиков
Anonymous
SFML 3 Как иметь дело с текстами в прямоугольнике

Сообщение Anonymous »

Код: Выделить всё

#pragma once

#include 
class RectangleWText
{
private:
sf::RectangleShape shape;
sf::Font font;
sf::Text label(std::string&);

public:
RectangleWText(const sf::Vector2f& size, const sf::Vector2f& position, const
std::string& text = "", const std::string& fontPath = "fonts/verdana.ttf") {

if (!font.openFromFile("verdana.ttf"))
{
std::cerr 

Подробнее здесь: [url]https://stackoverflow.com/questions/79570600/sfml-3-how-to-deal-with-texts-within-a-rectangle[/url]

Вернуться в «C++»