CM2Model::FillIndexBuffer
function · models · primitive
- Address
0x719930· 389 bytes, up to0x719ab4- Meaning
- Writes the index buffer of an instance's own batches from its visible submeshes
- Confidence
- verified, proof one
- Finding
- models/render#batch-draw
Finding: Batch draw in models: drawing
A batch element binds its textures, lighting and material. With vertex shaders it loads the submesh's bones as a palette of 4×3 matrices and selects the batch's shaders; otherwise it fills a vertex buffer by skinning the submesh on the CPU. It draws the submesh's triangles as an indexed triangle list, from the instance's own index buffer when the instance builds its own batches.
The derivation is in the doc.
Callers 1
- M2DrawBatch models
Callees 4
- 0x58a010 gx
- GxBufLock gx
- GxBufUnlock gx
- PassBufferToDevice gx
Calls and jumps by a bare address, from tables/calls.tsv.