SFML 3 Wie man mit Texten innerhalb eines Rechtecks ​​umgeht

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: SFML 3 Wie man mit Texten innerhalb eines Rechtecks ​​umgeht

by Anonymous » 12 Apr 2025, 17:05

Code: Select all

#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

Top