benilla-re systems structs docs

GetDeviceViewport

function · gx · orchestration

Address
0x58b060 · 36 bytes, up to 0x58b083
Meaning
Reads the device viewport and its depth range
Confidence
verified, proof one
Finding
ui/modelview#the-paint

Finding: The paint in ui: Model frames, camera and paint

The paint of a model frame runs from the ARTWORK batch of its layer. It returns at once without a model or a resolved rectangle. It saves the device projection, modelview and viewport, builds a projection over the frame's raw rectangle (camera leg or orthographic leg), sets the viewport to the rectangle, clears the depth buffer inside it, rebuilds the root transform, and, if the pending camera index is −1 and the model's data is resident, runs the scene and draws passes 0 and 1. It then restores the three saved states.

The derivation is in the doc.

Callers 20

Callees 1

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