XFileGuid.MeshMaterialList Field (Microsoft.DirectX.Direct3D)

Retrieves the globally unique identifier (GUID) for mesh material list templates.

Definition

Visual Basic Public Shared MeshMaterialList As GuidLeave Site
C# public static GuidLeave Site MeshMaterialList;
C++ public: static GuidLeave Site MeshMaterialList;
JScript public static var MeshMaterialList : GuidLeave Site

Field Value

System.Guid
A GuidLeave Site value that contains the GUID for mesh material list templates.

This field is read-only. 

Remarks

Mesh material list templates are used in a mesh object to specify which material applies to particular faces. In the following MeshMaterialList, the nMaterials member specifies how many materials are present, and the materials member specifies which material to apply.

[C#]template MeshMaterialList
{
    < F6F23F42-7686-11CF-8F52-0040333594A3 >
    DWORD nMaterials;
    DWORD nFaceIndexes;
    array DWORD faceIndexes[nFaceIndexes];
    [Material <3D82AB4D-62DA-11CF-AB39-0020AF71E433>]
}

Where:

  • nMaterials - A DWORD. The number of materials.
  • nFaceIndexes - A DWORD. The number of indices.
  • faceIndexes[nFaceIndexes] - An array of DWORDs that contain the face indices.