第一章 Introducing Direct 3D 翻译:clayman 创建设备 Device类是DirectX里的所有绘图操作所必须的。可以把这个类假想为真实的图形卡。场景里所有其他图形对象都依赖于device。你的计算机里可以有一个到几个device,在Mnaged DirctX3D里,你可以控制任意多个device。 D
In general, most applications work fine with a 24-bit depth buffer, although Direct3D also exposes a 32-bit depth buffer. D3DFMT_D32—Specifies a 32-bit depth buffer D3DFMT_D24S8—Specifies a 24
Multisampling The D3DMULTISAMPLE_TYPE enumerated type consists of values that allow us to specify the level of multisampling of a surface. They are: D3DMULTISAMPLE_NONE—Specifies nomultisampling D
The most important methods of IDirect3DSurface9 are: LockRect—This method allows us to obtain a pointer to the surface memory. Then, with some pointer arithmetic, we can read and write to each pix