Creates new instance with the DirectX layer Mesh mesh with specifying the count and the instances of the XMaterial material.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XMaterialMesh(
	Mesh mesh,
	XMaterial material,
	int materialCount
)

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

ExceptionCondition
System..::.ArgumentNullException mesh is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also