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:
| layer | priority | flags | callback | made at |
|---|---|---|---|---|
| console | 6.0 | 3 | 0x63b5c0 | 0x63b538 |
| console | 7.0 | 3 | 0x63b800 | 0x63b558 |
| loading screen | 9.0 | 6 | 0x406a60 | 0x4068db |
| system messages | 10.0 | 7 | 0x4092c0 | 0x4090d5 |
| screen fade | 10.0 | 7, 6 for 0 seconds | 0x4c0f50 | 0x4c0dac |
The derivation is in the doc.
Fields 8
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void * | __vfptr | Holds the vtable 0x802574 | verified, proof one | core/framepass#screen-layers |
0x0008 | 16 | float[4] | m_rect | Holds the layer's rectangle as left, bottom, right and top | verified, proof one | core/framepass#screen-layers |
0x0018 | 16 | float[4] | m_visible | Holds the rectangle the frame pass leaves visible, which decides whether it calls the layer | verified, proof one | core/framepass#layer-occlusion |
0x0028 | 4 | float | m_priority | Holds the priority that orders the list, lowest drawn first | verified, proof one | core/framepass#screen-layers |
0x002c | 4 | uint32_t | m_flags | Holds the flags: bit 0 lets the layers below show, bit 1 an ortho projection, bit 2 the full viewport | verified, proof one | core/framepass#screen-layers |
0x0030 | 4 | void * | m_param | Holds the parameter the callback gets in ecx | verified, proof one | core/framepass#pass-order |
0x0034 | 4 | void * | m_callback | Holds the callback the frame pass calls with the rectangles and the elapsed time | verified, proof one | core/framepass#pass-order |
0x0038 | 8 | void *[2] | m_link | Holds the layer's link in the list 0x885610 | verified, proof one | core/framepass#screen-layers |