 |
MeshModelNodeSetCustomIndexBuffer(Int32, GpuBuffer, Int32, Int32, IndexType) Method |
Sets the TriangleIndices and a custom index buffer that is used to render this MeshModelNode.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void SetCustomIndexBuffer(
int[]? newTriangleIndices,
GpuBuffer customIndexBuffer,
int indexOffset = 0,
int customIndexCount = -1,
IndexType indexBufferType = IndexType.Uint32
)
Parameters
- newTriangleIndices Int32
- Array of integers that define the triangles
- customIndexBuffer GpuBuffer
- new indexBuffer as GpuBuffer
- indexOffset Int32 (Optional)
- custom index offset (0 by default) that specifies an offset in the index buffer where data for this mesh begins
- customIndexCount Int32 (Optional)
- when positive number, then it specifies the custom number of used triangle indices; when negative, then number of items in the indexBuffer is used (-1 by default).
- indexBufferType IndexType (Optional)
- Type of index buffer (Uint32 by default)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.MeshModelNode.SetCustomIndexBuffer(System.Int32[],Ab4d.SharpEngine.Core.GpuBuffer,System.Int32,System.Int32,Ab4d.Vulkan.IndexType)"]
See Also