M2SceneDraw
function · models · primitive
- Address
0x708900· 172 bytes, up to0x7089ab- Meaning
- Draws one of a scene's three element lists, and the grouped list with list 0
- Confidence
- verified, proof one
- Finding
- models/render#list-draw
Finding: List draw in models: drawing
0x708900(k) resets the draw state, draws list k, and with k = 0 also the grouped list after
it. A list draw saves the device view, sets an identity view and texture matrix, clears four render
states, and with vertex shaders copies the view into shader constants. It then draws each element
through its kind and copies the element's keys to the previous-element slots; a batched run
(kind 2) advances past the run's length. It ends by restoring the view.
The derivation is in the doc.
Callers 5
- RenderWorldFrame ui
- BakePortrait ui
- DrawSky lighting
- SimpleModelDraw ui
- DrawStars lighting
Callees 4
- __ehvec_dtor crt
- __alloca_probe crt
- M2DrawStateInitialize models
- M2SceneDrawList models
Calls and jumps by a bare address, from tables/calls.tsv.