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

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

本文简介:

         device.Lights[0].Commit();

         device.Lights[0].Enabled = true;

        }

         这里简单的设置了摄像机和灯光。虽然每一帧都这么做不是很高效,但为了简单明了,例子里暂时这么做。当然,还应该检查图形卡是否支持方向光,不过这里也省略了。在InitializeGraphics()使用如下代码替代之前加载meshLoadMesh方法:

     CreatePatchMesh(filename,tessLevel);

     font = new Microsoft.DirectX.Direct3D.Font(device,new System.Drawing.Font("Arial",14.0f,FontStyle.Bold | FontStyle.Italic));

device.RenderState.FillMode = FillMode.WireFrame;

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

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

go top