benilla-re systems structs docs

ScrnLayerCreate

function · unassigned · orchestration

Address
0x442800 · 321 bytes, up to 0x442940
Signature
void __fastcall (float *rect, uint32_t flags, float priority, void *param, void *callback, void *handle)
Meaning
Makes a 0x40-byte screen layer, links it into 0x885610 by priority and writes its handle
Confidence
verified, proof one
Name from
the community database (idb)
Finding
core/framepass#screen-layers
Test
core::frame_pass_matches_binary

Finding: Screen layers in core: the frame pass

A layer is 0x40 bytes: the vtable 0x802574, the rectangle at +0x08 as left, bottom, right and top, the visible rectangle at +0x18, the priority +0x28, the flags +0x2c, the parameter +0x30, the callback +0x34 and the link +0x38. Flag bit 0 lets the layers below show, bit 1 asks for an orthographic projection and bit 2 for the full viewport. Six calls make the client's layers; the five above the top are:

layerpriorityflagscallbackmade at
console6.030x63b5c00x63b538
console7.030x63b8000x63b558
loading screen9.060x406a600x4068db
system messages10.070x4092c00x4090d5
screen fade10.07, 6 for 0 seconds0x4c0f500x4c0dac

The derivation is in the doc.

Callers 5

Callees 2

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