Creates new instance with the DirectX layer Mesh mesh with specifying the count and the instances of the XMaterial material.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
Parameters
- mesh
- Type: Mesh
The DirectX layer Mesh mesh instance used as source model for working with the mesh.
- material
- Type: SGP.XSpace..::.XMaterial
The XMaterial material instance using that the mesh will be rendered.
- materialCount
- Type: System..::.Int32
Number of used materials.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | mesh is nullNothingnullptra null reference (Nothing in Visual Basic). |