|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Component representing text to render. More...
#include <Text.hpp>
Public Attributes | |
| std::string | content |
| Text content. | |
| Vec2f | position |
| Position of the text. | |
| std::string | fontPath |
| Path to the font file. | |
| unsigned int | fontSize {24} |
| Font size. | |
| uint8_t | red {255} |
| Red component. | |
| uint8_t | green {255} |
| Green component. | |
| uint8_t | blue {255} |
| Blue component. | |
| uint8_t | alpha {255} |
| Alpha (opacity) | |
| int | zIndex {0} |
| Rendering order. | |
| uint8_t rtp::ecs::components::ui::Text::alpha {255} |
Alpha (opacity)
Definition at line 27 of file Text.hpp.
Referenced by rtp::client::scenes::PlayingScene::onEnter().
| uint8_t rtp::ecs::components::ui::Text::blue {255} |
Blue component.
Definition at line 26 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), and rtp::client::scenes::PlayingScene::onEnter().
| std::string rtp::ecs::components::ui::Text::content |
Text content.
Definition at line 20 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), rtp::client::scenes::PlayingScene::onEnter(), and rtp::client::scenes::RoomWaitingScene::update().
| std::string rtp::ecs::components::ui::Text::fontPath |
Path to the font file.
Definition at line 22 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), and rtp::client::scenes::PlayingScene::onEnter().
| unsigned int rtp::ecs::components::ui::Text::fontSize {24} |
Font size.
Definition at line 23 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), and rtp::client::scenes::PlayingScene::onEnter().
| uint8_t rtp::ecs::components::ui::Text::green {255} |
Green component.
Definition at line 25 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), and rtp::client::scenes::PlayingScene::onEnter().
| Vec2f rtp::ecs::components::ui::Text::position |
Position of the text.
Definition at line 21 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), and rtp::client::scenes::PlayingScene::onEnter().
| uint8_t rtp::ecs::components::ui::Text::red {255} |
Red component.
Definition at line 24 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), and rtp::client::scenes::PlayingScene::onEnter().
| int rtp::ecs::components::ui::Text::zIndex {0} |
Rendering order.
Definition at line 28 of file Text.hpp.
Referenced by rtp::client::graphics::UiFactory::createText(), and rtp::client::scenes::PlayingScene::onEnter().