Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::components::ui::Text Struct Reference

Component representing text to render. More...

#include <Text.hpp>

Collaboration diagram for rtp::ecs::components::ui::Text:

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.
 

Detailed Description

Component representing text to render.

Definition at line 19 of file Text.hpp.

Member Data Documentation

◆ alpha

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().

◆ blue

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().

◆ content

std::string rtp::ecs::components::ui::Text::content

◆ fontPath

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().

◆ fontSize

unsigned int rtp::ecs::components::ui::Text::fontSize {24}

◆ green

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().

◆ position

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().

◆ red

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().

◆ zIndex

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().


The documentation for this struct was generated from the following file: