GetDeviceViewport
function · gx · orchestration
- Address
0x58b060· 36 bytes, up to0x58b083- 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
- PaintLoadingScreen loadingscreen
- RunFramePass unassigned
- RenderWorldFrame ui
- RedrawInteriorTarget ui
- MinimapFrameRender ui
- BakePortrait ui
- GxuFontFrame unassigned
- ProjectPointsForDecal gxumath
- ProjectPointsToWindow gxumath
- SnapViewportRect font
- AtlasPage::Dump font
- CaptureSceneCamera terrain
- DrawFarBand terrain
- WorldTextSetPixelProjection playername
- DrawSky lighting
- SimpleModelDraw ui
- CSimpleMessageScrollFrame::DrawCallback ui
- DrawMovie ui
- QueryGlareOcclusion lighting
- DrawGlare lighting
Callees 1
- 0x592640 gx
Calls and jumps by a bare address, from tables/calls.tsv.