SFML 3 Wie man mit Texten innerhalb eines Rechtecks ​​umgehtC++

Programme in C++. Entwicklerforum
Anonymous
 SFML 3 Wie man mit Texten innerhalb eines Rechtecks ​​umgeht

Post by Anonymous »

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

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post