|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <UITree.hpp>
Classes | |
| struct | Node |
Public Member Functions | |
| void | rebuild (Registry ®) |
Public Attributes | |
| std::vector< Node > | nodes_ |
| u64 | structure_sig_ {0} |
The DFS view of the UI hierarchy, rebuilt each pass.
It carries no dirty state of its own. It used to — a per-node LAYOUT_DIRTY with a HAS_DIRTY_CHILD walk up to the root — but nothing ever produced those marks except the rebuild itself, which set every node dirty every frame, so the gate reading them was always open. What is actually dirty is now Yoga's own answer, tracked per style field on the retained nodes it already owns (UILayoutSystem.cpp); a second set of marks beside it would only be a second thing to keep true.
Definition at line 29 of file UITree.hpp.
|
inline |
Definition at line 44 of file UITree.hpp.
References esengine::ecs::canvasRoots(), esengine::hash::fnv1aWord(), esengine::INVALID_ENTITY, esengine::hash::kFnv64Offset, nodes_, and structure_sig_.
| std::vector<Node> esengine::ecs::UITree::nodes_ |
Definition at line 37 of file UITree.hpp.
Referenced by rebuild().
| u64 esengine::ecs::UITree::structure_sig_ {0} |
Definition at line 42 of file UITree.hpp.
Referenced by rebuild().