Microsoft DirectX 9.0 SDK Update (October 2004)

MeshContainer.SetMaterials Method

Language:

Note: This documentation is preliminary and is subject to change.

Sets an array of mesh materials.

Definition

Visual Basic .NET Public Sub SetMaterials( _
    ByVal mtrl() As ExtendedMaterial _
)
C# public void SetMaterials(
    ExtendedMaterial[] mtrl
);
Managed C++ public: void SetMaterials(
    ExtendedMaterial mtrl __gc[]
);
JScript .NET 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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