benilla-re systems structs docs

CSimpleMovieFrame::EmitLayer

function · ui · orchestration

Address
0x78d650 · 46 bytes, up to 0x78d67d
Signature
void __thiscall (CSimpleMovieFrame *this, void *batch, uint32_t layer)
Meaning
Emits the frame's layer and, for layer 2, adds the movie's draw callback to the batch
Confidence
verified, proof one
Finding
ui/movieframe#presenting-mid-frame

Finding: Presenting mid-frame in ui: the movie frame

The draw callback 0x78d680 ends with a tail jump to 0x58a960(3), the device's present slot with mask 3. The present draws the cursor, shows the frame, then clears colour and depth, before the walk goes on. The frame pass's present is skipped while a movie plays; the callback presents when 0x78cf30 returns 1, not at audio time 0, at the end or for the frame shown. The image holds what the walk drew before the callback, and the movie. What it draws after lands in the cleared back buffer, unpresented that pass; unless a later layer clears, it shows under the next present wherever the quad leaves it, and a pass with no new frame adds a walk, no present.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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