Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

TileMesh

TileMesh = object

Defined in: src/util/create_tile_mesh.ts:47

Stores the prepared vertex and index buffer bytes for a mesh.

Properties

indices

indices: ArrayBuffer

Defined in: src/util/create_tile_mesh.ts:56

The index data. Each triangle is defined by three indices. The indices may either be 16 bit or 32 bit unsigned integers, depending on the mesh creation arguments and on whether the mesh can fit into 16 bit indices.


uses32bitIndices

uses32bitIndices: boolean

Defined in: src/util/create_tile_mesh.ts:60

A helper boolean indicating whether the indices are 32 bit.


vertices

vertices: ArrayBuffer

Defined in: src/util/create_tile_mesh.ts:51

The vertex data. Each vertex is two 16 bit signed integers, one for X, one for Y.