Skip to main content

Module layer

Module layer 

Source
Expand description

The graphs-over-maps seam — a z-ordered LayerStack.

The render doctrine’s “graphs-overlaid-on-maps = LATER” line is unblocked by adding the seam now (not the feature): a shared camera (see super::camera::Camera) plus a z-ordered stack of Layers so a graph skin can later composite over a map skin without a retrofit. This milestone ships the struct + its z-order contract only — no consumer is wired; the skins still draw themselves directly.

Structs§

Layer
One stackable layer: its paint z (lower draws first / underneath) and its LayerKind. The renderer composites layers in ascending z.
LayerStack
A z-ordered set of Layers — the composition seam for graphs-over-maps. Push layers in any order; LayerStack::ordered yields them back→front (ascending z), with insertion order breaking ties so the result is deterministic.

Enums§

LayerKind
What a layer is — the domain kind drawn at this z. Opaque to the kernel: the stack only orders layers; it never interprets the kind. Extend as skins land.