 |
CustomMesh Constructor |
Constructor
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic CustomMesh(
GpuBuffer vertexBuffer,
GpuBuffer? indexBuffer,
int vertexCount,
int indexCount,
BoundingBox boundingBox,
VertexBufferDescription? vertexBufferDescription,
int indexOffset = 0,
PrimitiveTopology primitiveTopology = PrimitiveTopology.TriangleList,
IndexType indexBufferType = IndexType.Uint32,
string? name = null
)
Parameters
- vertexBuffer GpuBuffer
- vertexBuffer as GpuBuffer
- indexBuffer GpuBuffer
- optional indexBuffer as GpuBuffer
- vertexCount Int32
- number of vertices
- indexCount Int32
- number of triangle indices in the indexBuffer
- boundingBox BoundingBox
- BoundingBox
- vertexBufferDescription VertexBufferDescription
- VertexBufferDescription GpuDevice.(use VertexBufferDescriptionsManager to get common VertexBufferDescriptions)
- indexOffset Int32 (Optional)
- custom index offset (0 by default) that specifies an offset in the index buffer where data for this mesh begins
- primitiveTopology PrimitiveTopology (Optional)
- PrimitiveTopology (TriangleList by default)
- indexBufferType IndexType (Optional)
- type of index buffer (Uint32 by default)
- name String (Optional)
See Also