Creates new XMaterialMesh mesh from the resource resource.

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

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static XMaterialMesh CreateMesh(
	IXResourceLocation resource,
	Mesh mesh,
	ExtendedMaterial[] material
)

Parameters

resource
Type: SGP.XUtility..::.IXResourceLocation
The IXResourceLocation source defining the mesh location.
mesh
Type: Mesh
The DirectX layer Mesh mesh.
material
Type: array< ExtendedMaterial >[]()[]
The ExtendedMaterial material layer collection from the DirectX (.x) file.

Return Value

Returns the created XMaterialMesh mesh.

Exceptions

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

See Also