Function makeIndexBuffer

  • Make an indexData buffer for the creation of a WL.Mesh instance. Automatically decides the most memory-efficient TypedArray for the buffer.

    Returns

    A tuple containing the indexData buffer, and the indexType argument to be passed to the WL.Mesh constructor.

    Parameters

    • size: number

      The ammount of indices in the indexData buffer.

    • vertexCount: number

      The amount of vertices that will be indexed.

    Returns IndexDataTypeMapping

Generated using TypeDoc