benilla-re systems structs docs

RedrawInteriorTarget

function · ui · primitive

Address
0x4ec840 · 257 bytes, up to 0x4ec940
Signature
void __fastcall (uint32_t mode, uint32_t unused, uint32_t arg3, uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, uint32_t arg8)
Meaning
Clears the interior target to black with the frame alpha and composites the tiles into it when the mode is 1
Confidence
verified, proof one
Finding
minimap/draw#interior-target

Finding: Interior target in minimap: draw

The interior target is a 256 by 256 texture with one level, created once with a redraw callback. Its format is 1 when the device capabilities word at +0x70 is set, else 4 when +0x7c is, else 0. The callback acts only for mode 1: it makes the texture render target 0, sets a full viewport, clears the colour to black with the frame's alpha, draws the tiles with the composite pass and restores the target, the clear colour and the viewport. The initial radius is 10.0, which the first interior rebuild replaces.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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