【翻译】Managed DirectX(第九章)[28]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

              meshMaterials = new Material[mtrl.Length];

              meshTextures = new Texture[mtrl.Length];

              // Store each material and texture

              for (int i = 0; i < mtrl.Length; i++)

              {

                   meshMaterials[i] = mtrl[i].Material3D;

                   if ((mtrl[i].TextureFilename != null) && (mtrl[i].TextureFilename != string.Empty))

                   {

                       // We have a texture, try to load it

                       meshTextures[i] = TextureLoader.FromFile(device, @"..\..\" + mtrl[i].TextureFilename);

本文关键:【翻译】Managed DirectX(第九章)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top