 |
TriangleMeshTSetCustomVertexBuffer(T, GpuBuffer, BoundingBox, VertexBufferDescription) Method |
SetCustomVertexBuffer can be used to change the
Vertices and the vertex buffer that is used to render the mesh.
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic void SetCustomVertexBuffer(
T[] vertices,
GpuBuffer customVertexBuffer,
BoundingBox boundingBox,
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
- boundingBox BoundingBox
- Bounding box of the vertices
- customVertexBufferDescription VertexBufferDescription (Optional)
- optional VertexBufferDescription; when null then the existing VertexBufferDescription is preserved
See Also