|
SubMesh(Int32, Int32, Int32, BoundingBox, String) Constructor |
Constructor
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public SubMesh(
int materialIndex,
int startIndexLocation,
int indexCount,
BoundingBox boundingBox,
string? name = null
)
Parameters
- materialIndex Int32
- index of the material defined in the MultiMaterialModelNode's Materials or -1 to prevent rendering front triangles of this SubMesh
- startIndexLocation Int32
- Start index in IndexBuffer in the Mesh
- indexCount Int32
- Number of indices to render. For example, when set to 6, then 2 triangles will be rendered.
- boundingBox BoundingBox
- BoundingBox of the part of the mesh that is defined by this SubMesh
- name String (Optional)
- optional name
See Also