IndexBuffer3D class is used to create index buffer. Please use LayaGL.RenderOBJCreate.createIndexBuffer3D to create.

IndexBuffer3D 类用于创建索引缓冲。请使用LayaGL.RenderOBJCreate.createIndexBuffer3D来创建。

构造函数

属性

_buffer: Float32Array | Uint16Array | Uint8Array | Uint32Array
_byteLength: number
bufferUsage: BufferUsage

访问器

方法

  • 参数

    • data: any

      The index data.

    • bufferOffset: number = 0

      The offset within the index buffer.

    • dataStartIndex: number = 0

      The offset within the data.

    • dataCount: number = 4294967295

      The number of indices to set.

    返回 void

    Sets the data for the index buffer.

    设置索引缓冲区的数据。