CChunkLiquid::BuildStrip
function · terrain · primitive
- Address
0x68d9b0· 244 bytes, up to0x68daa3- Signature
uint32_t __thiscall (CChunkLiquid *this, uint32_t type)- Meaning
- Fills the index buffer with one strip over the tiles of a liquid type; returns the count
- Confidence
- verified, proof one
- Finding
- terrain/liquid#liquid-strips
- Test
terrain::liquid_strip_indices
Finding: Liquid strips in terrain: liquid
0x68d9b0(type) fills the liquid's index buffer with one triangle strip over the 8×8 tiles whose
type nibble equals the argument, row by row, and returns the index count. A run of matching tiles
in a row starts with v, v, v + 9 and adds v + 1, v + 10 for each tile, v = row·9 + column; a run
ends, at a non-matching tile or the row's end, by repeating its last index.
The derivation is in the doc.
Callers 3
- CChunkLiquid::DrawOcean terrain
- CChunkLiquid::DrawRiver terrain
- CChunkLiquid::DrawMagma terrain
Callees 2
- GxBufLock gx
- GxBufUnlock gx
Calls and jumps by a bare address, from tables/calls.tsv.