benilla-re systems structs docs

BatchAddCallback

function · ui · primitive

Address
0x773110 · 142 bytes, up to 0x77319d
Meaning
Adds a draw callback and its context to a batch, drained after the quads and the text
Confidence
verified, proof one
Finding
ui/draworder#what-a-batch-drains

Finding: What a batch drains in ui: draw order

A batch holds three arrays and drains them in this order: first the quads of every texture in it, sorted by texture handle, then the text of every font string, in the order the frames were walked, then the registered render callbacks. So within one level and layer every texture draws before any text and the textures' order is by handle, not by frame or declaration; only text keeps the frame order and, within a frame, the order the regions were last registered.

The derivation is in the doc.

Callers 7

Callees 1

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