packages/Windows API Code Pack 1.1/source/Samples/DirectX/CS/UtilitiesLibrary/MeshLoader/XMeshLoader.cs
/// <summary>
/// Loads the first material for a mesh
/// </summary>
/// <param name="meshMAterialData"></param>
/// <returns></returns>
Loads the first material for a mesh
Loads the first material for a mesh
List<MaterialSpecification> LoadMeshMaterialList(IXDataObject dataObject)
        {
            var materials = from child in dataObject.Children
                            where child.DataObjectType == "Material"
                            select LoadMeshMaterial(child);
            return new List<MaterialSpecification>(materials);
        }
List < MaterialSpecification > LoadMeshMaterialList ( IXDataObject dataObject ) { var materials = from child in dataObject . Children where child . DataObjectType == " " select LoadMeshMaterial ( child ) ; return new List < MaterialSpecification > ( materials ) ; }
Loads the first material for a mesh
Loads the first material for a mesh
None
dataObject
IXDataObject
meshMAterialData
None