Share via


MeshContainer.SetMaterials(ExtendedMaterial[]) Method (Microsoft.DirectX.Direct3D)

Sets an array of mesh materials.

Definition

Visual Basic Public Sub SetMaterials( _
    ByVal mtrl() As ExtendedMaterial _
)
C# public void SetMaterials(
    ExtendedMaterial[] mtrl
);
C++ public:
void SetMaterials(
    array<ExtendedMaterial>^ mtrl
);
JScript public function SetMaterials(
    mtrl : ExtendedMaterial[]
);

Parameters

mtrl Microsoft.DirectX.Direct3D.ExtendedMaterial[]
Array of ExtendedMaterial objects that contain the mesh materials to set.

Remarks

Exceptions

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.