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

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

本文简介:

font.DrawText(null,string.Format("number vertices in mesh: {0}",mesh.NumberVertices),new Rectangle(10,10,0,0),DrawTextFormat.NoClip,Color.BlanchedAlmond);

font.DrawText(null,string.Format("number faces in mesh: {0}",mesh.NumberFaces),new Rectangle(10,30,0,0),DrawTextFormat.NoClip,Color.BlanchedAlmond);

         好了,现在可以方便的看到移动模型时顶点和面的数量都减少了。你可以获得如下的结果:

        

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

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

go top