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

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

本文简介:

     // If we have any materials, store them

     if ((mtrl != null) && (mtrl.Length > 0))

     {

         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))

             {

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

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

go top