MrGunflame / big-gaming

GNU General Public License v3.0
0 stars 0 forks source link

Reconsider how primitive depth (z-index) works #298

Open MrGunflame opened 1 month ago

MrGunflame commented 1 month ago

Currently there is no direct concept of depth/z-index. LayoutTree uses purely incremental IDs and a sorted list of elements and the elements are rendered in this exact order. This has the effect that the last created element is rendered on top with the indirect effect that children always render after their parents. This system currently works mostly fine, except:

Potential options for depth/z-index: