File Text.hpp¶
File List > Components > Text.hpp
Go to the documentation of this file
/*
** EPITECH PROJECT, 2026
** G-ING-500-BAR-5-1-rtype-1
** File description:
** Text.hpp
*/
#ifndef G_ING_500_BAR_5_1_RTYPE_1_TEXT_HPP
#define G_ING_500_BAR_5_1_RTYPE_1_TEXT_HPP
#include <string>
#include <utility>
#include "raylib-cpp.hpp"
namespace Engine {
struct Text {
std::string text = "";
std::string fontPath = "";
Font font = {};
float fontsize = 10.0f;
float spacing = 1.0f;
Color color = WHITE;
Text(std::string Text = "", float Fontsize = 10.0f, Color tint = WHITE,
std::string FontPath = "")
: text(std::move(Text)), fontPath(std::move(FontPath)), fontsize(Fontsize), color(tint) {}
Text(Font font, std::string Text, float Fontsize, float Spacing, Color tint,
std::string FontPath = "")
: text(std::move(Text)), fontPath(std::move(FontPath)), font(std::move(font)),
fontsize(Fontsize), spacing(Spacing), color(tint) {}
};
} // namespace Engine
#endif // G_ING_500_BAR_5_1_RTYPE_1_TEXT_HPP