benilla-re systems structs docs

CChunkLiquid::BuildStrip

function · terrain · primitive

Address
0x68d9b0 · 244 bytes, up to 0x68daa3
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

Callees 2

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