TileMesh<T>
TileMesh<
T> =object
Defined in: util/create_tile_mesh.ts:46
Stores the prepared vertex and index buffer bytes for a mesh.
Type Parameters
| Type Parameter |
|---|
T extends Uint16Array | Uint32Array |
Properties
indices
indices:
T
Defined in: util/create_tile_mesh.ts:55
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:
TextendsUint32Array?true:false
Defined in: util/create_tile_mesh.ts:59
A helper boolean indicating whether the indices are 32 bit.
vertices
vertices:
Int16Array
Defined in: util/create_tile_mesh.ts:50
The vertex data. Each vertex is two 16 bit signed integers, one for X, one for Y.