SimpleModelDraw
function · ui · primitive
- Address
0x76d240· 1078 bytes, up to0x76d675- Signature
void __thiscall (void *this)- Meaning
- Draws a model frame's scene inside its own rectangle, viewport and depth clear
- Confidence
- verified, proof one
- Finding
- ui/modelview#the-paint
- Test
ui::glue_76d240_change_detect_and_scale
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 1
Callees 16
- UnscaleScreenXY screencoord
- ClearDevice gx
- SetDeviceViewport gx
- SetDeviceProjection gx
- SetDeviceView gx
- GetDeviceViewport gx
- GetDeviceProjection gx
- GetDeviceView gx
- M2SceneAnimateAndCollect models
- M2SceneDraw models
- CM2Model::IsReady models
- CLayoutFrame::GetRect ui
- SimpleModelGetScene ui
- GetVectorProperty camera
- SetupOrthoTransforms camera
- CameraSetDeviceTransforms camera
Calls and jumps by a bare address, from tables/calls.tsv.