The VertexBuffer3D class is used to create vertex buffers. To create an instance of VertexBuffer3D, use LayaGL.RenderOBJCreate.createIndexBuffer3D.
VertexBuffer3D
LayaGL.RenderOBJCreate.createIndexBuffer3D
VertexBuffer3D 类用于创建顶点缓冲。要创建 VertexBuffer3D 的实例,请使用 LayaGL.RenderOBJCreate.createIndexBuffer3D。
The byte length of the buffer.
The usage type of the VertexBuffer3D.
Whether the buffer is readable.
Constructor method.
构造方法。
缓冲区是否可读。
Whether this is an instance buffer.
是否是实例缓冲区。
The vertex declaration.
顶点声明。
Destroys the vertex buffer and releases the resources.
销毁顶点缓冲区并释放资源。
Gets the vertex data as a Uint8Array.
Uint8Array
以 Uint8Array 形式获取顶点数据。
The data to set.
The offset within the vertex buffer, in bytes.
The starting index within the data, in bytes.
The number of bytes to set.
Sets the data for the vertex buffer.
设置顶点缓冲区的数据。
En
The
VertexBuffer3D
class is used to create vertex buffers. To create an instance ofVertexBuffer3D
, useLayaGL.RenderOBJCreate.createIndexBuffer3D
.Zh
VertexBuffer3D
类用于创建顶点缓冲。要创建VertexBuffer3D
的实例,请使用LayaGL.RenderOBJCreate.createIndexBuffer3D
。