On this page

Type Alias TileMesh

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

type TileMesh = {
    indices: ArrayBuffer;
    uses32bitIndices: boolean;
    vertices: ArrayBuffer;
}
Index

Properties

indices: ArrayBuffer

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: boolean

A helper boolean indicating whether the indices are 32 bit.

vertices: ArrayBuffer

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

Was this helpful?
SDK JS
Reference
TileMesh