Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
UIBindings.cpp File Reference

Implements the UI entry points (see UIBindings.hpp). More...

Include dependency graph for UIBindings.cpp:

Go to the source code of this file.

Namespaces

namespace  esengine

Functions

static EstellaContext & esengine::ctx ()
bool esengine::uiLayout_update (ecs::Registry &registry, f32 boxLeft, f32 boxBottom, f32 boxRight, f32 boxTop, bool propertyDirty)
bool esengine::uiHitTest_inputsChanged (ecs::Registry &registry)
void esengine::uiHitTest_update (ecs::Registry &registry, f32 originX, f32 originY, f32 originZ, f32 dirX, f32 dirY, f32 dirZ)
void esengine::uiHitTest_updateDomains (ecs::Registry &registry, 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, screen UI the second.
u32 esengine::uiHitTest_getHitEntity ()
u32 esengine::uiHitTest_pick (ecs::Registry &registry, f32 worldX, f32 worldY)
u32 esengine::uiHitTest_pickAll (ecs::Registry &registry, f32 worldX, f32 worldY)
u32 esengine::uiHitTest_pickResult (u32 index)
f32 esengine::uiNode_computedWidth (ecs::Registry &r, u32 e)
f32 esengine::uiNode_computedHeight (ecs::Registry &r, u32 e)
const std::unordered_map< u32, i32 > * esengine::uiTreeLayers ()
void esengine::uiRenderOrder_update (ecs::Registry &registry)
i32 esengine::ui_getRenderOrder (ecs::Registry &registry, u32 entity)
u32 esengine::ui_getCullBit (ecs::Registry &registry, u32 entity)
bool esengine::ui_isScreenDomain (ecs::Registry &registry, u32 entity)
 Whether entity belongs to the SCREEN rather than to the world.
bool esengine::getUINodeHiddenInTree (ecs::Registry &registry, u32 entity)
f32 esengine::getUINodeAlphaInTree (ecs::Registry &registry, u32 entity)
f32 esengine::getUINodeComputedWidth (ecs::Registry &registry, u32 entity)
f32 esengine::getUINodeComputedHeight (ecs::Registry &registry, u32 entity)
bool esengine::transform_copyFlatRenderMatrix (ecs::Registry &registry, u32 entity, uintptr_t outputPtr)
void esengine::transform_update (ecs::Registry &registry)

Variables

static ecs::UITreeOrder esengine::g_uiTreeOrder

Detailed Description

Implements the UI entry points (see UIBindings.hpp).

Moved out of WebSDKEntry.cpp, which is the emscripten ENTRY point: these implementations only ever needed the active context and the registry, so keeping them there made them web-only for no reason. As their own TU they compile for a native build too, and the generated QuickJS wrappers call the same code embind registers.

Definition in file UIBindings.cpp.