37 return ctx().
require<
ecs::UISystem>().layoutUpdate(registry, boxLeft, boxBottom, boxRight, boxTop, propertyDirty);
47 const ecs::PickRay ray{{originX, originY, originZ}, {dirX, dirY, dirZ}};
49 ctx().tryGet<resource::ResourceManager>());
53 f32 worldOriginX,
f32 worldOriginY,
f32 worldOriginZ,
54 f32 worldDirX,
f32 worldDirY,
f32 worldDirZ,
55 f32 screenOriginX,
f32 screenOriginY,
f32 screenOriginZ,
56 f32 screenDirX,
f32 screenDirY,
f32 screenDirZ) {
57 const ecs::PickRay world{{worldOriginX, worldOriginY, worldOriginZ},
58 {worldDirX, worldDirY, worldDirZ}};
59 const ecs::PickRay screen{{screenOriginX, screenOriginY, screenOriginZ},
60 {screenDirX, screenDirY, screenDirZ}};
62 ctx().tryGet<resource::ResourceManager>());
142 if (!node)
return 0.0f;
148 if (!node)
return 0.0f;
155 std::memcpy(
reinterpret_cast<void*
>(outputPtr), glm::value_ptr(matrix),
sizeof(glm::mat4));
161 if (
auto* ts =
ctx().tryGet<ecs::TransformSystem>()) {
Instance-based engine context for estella renderer.
Central ECS registry for entity and component management.
Central resource management system.
The UI entry points the SDK drives: the Yoga layout pass, hit testing, draw order,...
UI subsystem owning layout tree and hit-test state.
Unified context passed to all ECS systems.
ServiceRegistry & services()
static constexpr i32 UI_BASE_LAYER
The opacity a draw inherits from the GroupOpacity above it.
f32 of(Entity entity) const
1 when no enabled group encloses entity (itself included).
Central container for all entities and components.
T * tryGet(Entity entity)
Tries to get a component from an entity.
UI subsystem: owns layout tree + hit-test state.
bool isScreenDomain(const Registry ®istry, u32 entity) const
bool copyFlatRenderMatrix(Registry ®istry, Entity entity, glm::mat4 &output)
void uiRenderOrderUpdate(Registry ®istry, UITreeOrder *tree=nullptr)
void transform_update(ecs::Registry ®istry)
f32 getUINodeAlphaInTree(ecs::Registry ®istry, u32 entity)
f32 uiNode_computedWidth(ecs::Registry &r, u32 e)
void uiRenderOrder_update(ecs::Registry ®istry)
u32 uiHitTest_pickAll(ecs::Registry ®istry, f32 worldX, f32 worldY)
std::int32_t i32
Signed 32-bit integer.
u32 uiHitTest_pick(ecs::Registry ®istry, f32 worldX, f32 worldY)
bool ui_isScreenDomain(ecs::Registry ®istry, u32 entity)
Whether entity belongs to the SCREEN rather than to the world.
f32 uiNode_computedHeight(ecs::Registry &r, u32 e)
bool transform_copyFlatRenderMatrix(ecs::Registry ®istry, u32 entity, uintptr_t outputPtr)
f32 getUINodeComputedWidth(ecs::Registry ®istry, u32 entity)
void uiHitTest_update(ecs::Registry ®istry, f32 originX, f32 originY, f32 originZ, f32 dirX, f32 dirY, f32 dirZ)
void uiHitTest_updateDomains(ecs::Registry ®istry, f32 worldOriginX, f32 worldOriginY, f32 worldOriginZ, f32 worldDirX, f32 worldDirY, f32 worldDirZ, f32 screenOriginX, f32 screenOriginY, f32 screenOriginZ, f32 screenDirX, f32 screenDirY, f32 screenDirZ)
The hit test with a ray per domain — world content and world-space UI answer the first,...
u32 uiHitTest_pickResult(u32 index)
bool uiLayout_update(ecs::Registry ®istry, f32 boxLeft, f32 boxBottom, f32 boxRight, f32 boxTop, bool propertyDirty)
const std::unordered_map< u32, i32 > * uiTreeLayers()
u32 uiHitTest_getHitEntity()
std::uint32_t u32
Unsigned 32-bit integer.
f32 getUINodeComputedHeight(ecs::Registry ®istry, u32 entity)
bool getUINodeHiddenInTree(ecs::Registry ®istry, u32 entity)
bool uiHitTest_inputsChanged(ecs::Registry ®istry)
i32 ui_getRenderOrder(ecs::Registry ®istry, u32 entity)
static ecs::UITreeOrder g_uiTreeOrder
static EstellaContext & ctx()
EstellaContext & activeCtx()
The engine context every binding routes through — single source of truth.
u32 ui_getCullBit(ecs::Registry ®istry, u32 entity)
float f32
32-bit floating point
static constexpr Entity fromRaw(u32 v)
Reconstructs an Entity from a raw packed value.
Context passed to every System::update call.
UINode — the CSS box-model layout input (the CSS/Flex primary layout model).
The draw layer of what a Canvas holds that has no uiOrder of its own: an emitter, a Spine skeleton,...
UIVisual — the single UI visual component, merging the former low-level UIRenderer (what the renderer...