Architecture Arcade
Architecture Commune Arcade
IText.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** Archi Arcade Promo 2026 Toulouse
4 ** File description:
5 ** A text child of components that will be understood by the graphic library
6 */
7 
8 #pragma once
9 
10 #include <string>
11 #include "ArcadeStruct.hpp"
12 #include "GraphStruct.hpp"
13 #include "IComponent.hpp"
14 
15 namespace Arcade {
16  namespace Graph {
25  struct IText : public Arcade::ECS::IComponent {
26  public:
30  std::string fontPath;
34  std::string text;
50  };
51  } // namespace Graph
52 } // namespace Arcade
Definition: ArcadeStruct.hpp:10
Definition: ArcadeStruct.hpp:17
Definition: IComponent.hpp:39
Definition: GraphStruct.hpp:14
The IText class.
Definition: IText.hpp:25
std::string fontPath
Font path.
Definition: IText.hpp:30
Color textColor
The text color.
Definition: IText.hpp:42
std::string text
Text to display.
Definition: IText.hpp:34
Arcade::Vector3f pos
The sprite position in 3Dimension (you can use only x and y if you want)
Definition: IText.hpp:49
Color backgroundColor
The background color.
Definition: IText.hpp:38