Click or drag to resize
Ab4d.SharpEngine logo

MeshModelNodeSetCustomVertexBuffer(PositionNormalTextureVertex, GpuBuffer, BoundingBox, VertexBufferDescription) Method

SetCustomVertexBuffer can be used to change the vertices and the vertex buffer that is used to render this MeshModelNode. This method can be called only when Mesh is StandardMesh or TriangleMesh<PositionNormalTextureVertex>.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public void SetCustomVertexBuffer(
	PositionNormalTextureVertex[] vertices,
	GpuBuffer customVertexBuffer,
	BoundingBox boundingBox,
	VertexBufferDescription? customVertexBufferDescription = null
)

Parameters

vertices  PositionNormalTextureVertex
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
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.MeshModelNode.SetCustomVertexBuffer(Ab4d.SharpEngine.Common.PositionNormalTextureVertex[],Ab4d.SharpEngine.Core.GpuBuffer,Ab4d.SharpEngine.Common.BoundingBox,Ab4d.SharpEngine.Utilities.VertexBufferDescription)"]

See Also