MeshContainer.SetMaterials Method

Language:

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
OutOfMemoryException Leave Site Microsoft Direct3D could not allocate sufficient memory to complete the call.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center