benilla-re systems structs docs

DrawEntityModels

function · terrain · host

Address
0x683dd0 · 429 bytes, up to 0x683f7c
Signature
void __cdecl (void)
Meaning
Draws the frame's entities: animate, show, light, call their callback, decal pass
Confidence
verified, proof one
Finding
terrain/scene#entity-draw

Finding: Entity draw in terrain: scene

0x683dd0 draws the entities. For each in the draw list it unlinks the node, sets the model animated and visible when +0x90 bit 3 is clear, installs the lighting callback 0x672a20 with the entity as its argument, and calls the entity's callback +0xb4 with edx = 1 and its four arguments; when the callback is null or returns 0 and the model is not hidden (+0x90 bits 3 and 10), it runs the decal pass 0x6d78f0. The second list gets the same callback with edx = 2 and nothing else. Each entity increments the drawn counter 0xc7b744.

The derivation is in the doc.

Callers 1

Callees 4

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