OGL Engine 1.2.0-dev
|
Définit un component "Element" à ajouter à une entité pour créer des interfaces. More...
#include <element.hpp>
Public Attributes | |
glm::vec2 | size |
la taille de l'élément | |
Graphics::Material | material |
le material à appliquer sur l'élément | |
Anchor | anchor = Anchor::Center |
Une ancre pour positionner l'élément. | |
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. | |
Entity & | GetEntity () const |
Renvoie l'entité attachée. | |
Registry & | GetRegistry () const |
Renvoie le registre actuel. | |
Scene::Scene & | GetScene () const |
Renvoie la scène en cours. | |
App & | GetApp () const |
Renvoie l'instance d'application. |
Définit un component "Element" à ajouter à une entité pour créer des interfaces.
Anchor Engine::UI::Element::anchor = Anchor::Center |
Une ancre pour positionner l'élément.
Graphics::Material Engine::UI::Element::material |
le material à appliquer sur l'élément
glm::vec2 Engine::UI::Element::size |
la taille de l'élément