【文件属性】:
文件名称:DirectX9 3D 快速上手
文件大小:64KB
文件格式:TXT
更新时间:2011-12-26 18:47:38
DirectX9 3D
要使用DX,那么第一件事情就是建立设备。比起DirectDraw,3D的设备建立还是稍微简单一些的:
public Device (
System.Int32 adapter , //表示我们将要使用哪个物理图形卡。一般用0
Microsoft.DirectX.Direct3D.DeviceType deviceType ,// 创建那种类型的device。
System.Windows.Forms.Control renderWindow , // rendrWindow表示把设备绑定到的窗口。
Microsoft.DirectX.Direct3D.CreateFlags behaviorFlags, //描述设备创建之后的行为Microsoft.DirectX.Direct3D.PresentParameters presentationParameters )// 设备把数据呈现到显示器的方式