OGL Engine 1.2.0-dev
Loading...
Searching...
No Matches
Engine::UI::Text Struct Reference

Définit un component "Text" à ajouter à une entité pour créer des interfaces. More...

#include <text.hpp>

Inheritance diagram for Engine::UI::Text:
Engine::ECS::Component

Public Attributes

std::string text = ""
 le text à afficher
float maxWidth = 0.0f
 la taille max autorisée pour ce texte (crop sinon)
glm::vec3 color = {1.0f, 1.0f, 1.0f}
 la couleur du texte
bool enableOutline = false
 Un booléen qui permet d'afficher un contour autour du texte.
glm::vec3 outlineColor = {0.0f, 0.0f, 0.0f}
 La couleur du contour si activé
Graphics::Shadershader = Defaults::textShader
 le shader utilisé pour rendre le texte
Fontfont = Defaults::font
 la police d'écriture utilisée
Anchor anchor = Anchor::Center
 Une ancre pour positionner le texte.
Public Attributes inherited from Engine::ECS::Component
bool enabled = true

Additional Inherited Members

Public Member Functions inherited from Engine::ECS::Component
 Component ()=default
void SetEntity (Entity e)
 Attache l'entité au component.
EntityGetEntity () const
 Renvoie l'entité attachée.
RegistryGetRegistry () const
 Renvoie le registre actuel.
Scene::SceneGetScene () const
 Renvoie la scène en cours.
AppGetApp () const
 Renvoie l'instance d'application.

Detailed Description

Définit un component "Text" à ajouter à une entité pour créer des interfaces.

Member Data Documentation

◆ anchor

Anchor Engine::UI::Text::anchor = Anchor::Center

Une ancre pour positionner le texte.

◆ color

glm::vec3 Engine::UI::Text::color = {1.0f, 1.0f, 1.0f}

la couleur du texte

◆ enableOutline

bool Engine::UI::Text::enableOutline = false

Un booléen qui permet d'afficher un contour autour du texte.

◆ font

Font* Engine::UI::Text::font = Defaults::font

la police d'écriture utilisée

◆ maxWidth

float Engine::UI::Text::maxWidth = 0.0f

la taille max autorisée pour ce texte (crop sinon)

◆ outlineColor

glm::vec3 Engine::UI::Text::outlineColor = {0.0f, 0.0f, 0.0f}

La couleur du contour si activé

◆ shader

Graphics::Shader* Engine::UI::Text::shader = Defaults::textShader

le shader utilisé pour rendre le texte

◆ text

std::string Engine::UI::Text::text = ""

le text à afficher


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