BuildBatchDrawArgs
function · terrain · orchestration
- Address
0x6b5140· 67 bytes, up to0x6b5182- Signature
void __fastcall (void *out, const void *batch)- Meaning
- Builds the draw record of a batch: primitive, start index, index count and vertex range
- Confidence
- verified, proof one
- Finding
- terrain/groupdraw#batch-buffers-and-cull
Finding: Batch buffers and cull in terrain: map object draw
A batch is drawn only when the volume does not cull its box, and only once a frame. 0x6b4d10
tests the box of 16-bit values against the current volume with 0x682f40. 0x6b4da0(group, format) binds the group's vertex and index data: a block from the group vertex pool (age set to 30.0
at each bind, filled when new) and one from the index pool, or the group's own arrays when no block
is free. 0x6b5140 makes the draw record of a batch: primitive 3 (triangles), or 4 (strip) when
the strip switch 0xc96304 (world flag 0x10000 at map load) is set and bit 0 of the batch flag is.
The derivation is in the doc.
Callers 4
- DrawExteriorGroupBatches terrain
- DrawInteriorGroupBatches terrain
- DrawGroupVertexColors terrain
- DrawGroupUnlitTextures terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.