benilla-re systems structs docs

ScreenLayer

struct · unassigned · 64 bytes

Vtable
0x802574
Meaning
Holds a screen layer: its rectangle, visible rectangle, priority, flags, parameter, callback and link
Confidence
verified, proof one
Finding
core/framepass#screen-layers

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.

Fields 8

offsetsizetypenamemeaningconfidencefinding
0x00004void *__vfptrHolds the vtable 0x802574verified, proof onecore/framepass#screen-layers
0x000816float[4]m_rectHolds the layer's rectangle as left, bottom, right and topverified, proof onecore/framepass#screen-layers
0x001816float[4]m_visibleHolds the rectangle the frame pass leaves visible, which decides whether it calls the layerverified, proof onecore/framepass#layer-occlusion
0x00284floatm_priorityHolds the priority that orders the list, lowest drawn firstverified, proof onecore/framepass#screen-layers
0x002c4uint32_tm_flagsHolds the flags: bit 0 lets the layers below show, bit 1 an ortho projection, bit 2 the full viewportverified, proof onecore/framepass#screen-layers
0x00304void *m_paramHolds the parameter the callback gets in ecxverified, proof onecore/framepass#pass-order
0x00344void *m_callbackHolds the callback the frame pass calls with the rectangles and the elapsed timeverified, proof onecore/framepass#pass-order
0x00388void *[2]m_linkHolds the layer's link in the list 0x885610verified, proof onecore/framepass#screen-layers