Skip to main content

MeshIndexType

Enum

Possible index data types used by MeshBuilder.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Possible index data types used by MeshBuilder. MeshIndexType.UInt16 is the value normally used.

Index

Enumeration Members

Example

// Constructs a new mesh builder
var builder = new MeshBuilder([
{ name: "position", components: 3 },
{ name: "normal", components: 3, normalized: true },
{ name: "texture0", components: 2 },
{ name: "color", components: 4 },
]);

builder.topology = MeshTopology.Triangles;
builder.indexType = MeshIndexType.UInt16;

Enumeration Members

None

None: number

No index data type


UInt16

UInt16: number

Unsigned integer, this is the value normally used