benilla-re systems structs docs

0x65bd90

function · unassigned · primitive

Address
0x65bd90 · 334 bytes, up to 0x65bedd
Meaning
Combines a rectangle into a region by mode: 2 adds it and 4 takes it out; an empty rectangle adds nothing
Confidence
verified, proof one
Finding
core/framepass#layer-occlusion
Test
core::region_bounding_rect_matches_binary, core::frame_pass_matches_binary

Finding: Layer occlusion in core: the frame pass

Before drawing, the pass walks from the tail with a region holding the unit square. A layer's visible rectangle is the region's bounding rectangle clamped to its own; then, when its flag bit 0 is clear, its rectangle is taken out of the region. So a layer is called only when the bounding rectangle of what the opaque layers above leave of the unit square overlaps it: an opaque centre square leaves a ring whose bounds are the whole square. One with bit 0 clear covering the unit square hides all below, as the loading screen does: while it is up no OnUpdate, world or interface paint runs, unless an arrival aboard a transport has set its bit 0.

The derivation is in the doc.

Callers 2

Callees 6

Calls and jumps by a bare address, from tables/calls.tsv.