 |
TriangleMeshTSetCustomVertexBuffer(T, GpuBuffer, VertexBufferDescription) Method |
SetCustomVertexBuffer can be used to change the
Vertices and the vertex buffer that is used to render the mesh.
This method also recalculates the bounding box of the mesh based on the new vertices. To prevent this, also pass the existing bounding box as a parameter.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void SetCustomVertexBuffer(
T[] vertices,
GpuBuffer customVertexBuffer,
VertexBufferDescription? customVertexBufferDescription = null
)
Parameters
- vertices T
- Array of vertices of the specified type T
- customVertexBuffer GpuBuffer
- vertexBuffer as GpuBuffer that contains data from the vertices
- customVertexBufferDescription VertexBufferDescription (Optional)
- optional VertexBufferDescription; when null then the existing VertexBufferDescription is preserved
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Meshes.TriangleMesh`1.SetCustomVertexBuffer(`0[],Ab4d.SharpEngine.Core.GpuBuffer,Ab4d.SharpEngine.Utilities.VertexBufferDescription)"]
See Also