directx9专题

DirectX9中D3DLOCKED_RECT的使用

1、定义       在d3d9types.h中,D3DLOCKED_RECT的定义如下:       其中,pBits为指向矩形的指针,Pitch以字节为单位,表示矩形每一行的长度。       注意:Pitch有可能比矩形宽度要大且依赖于底层硬件,所以不能单纯的认为                  Pitch ≠ 矩形宽度 * sizeof(pixe

翻译 managed DirectX9(第二章)

作者:clayman仅供个人学习使用,请勿转载,勿用于任何商业用途。由于本人水平有限,难免出错,不清楚的地方请大家以原著为准。欢迎大家和我多多交流。Blog:http://blog.csdn.net/soilworkclayman_joe@yahoo.com.cn 第二章 选择正确的 Device         如今,市场里有大量不同类型的显示卡,记住每种显卡所支持的特性几乎时

翻译 managed DirectX9(第一章)

第一章 Introducing Direct 3D 翻译:clayman 创建设备     Device类是DirectX里的所有绘图操作所必须的。可以把这个类假想为真实的图形卡。场景里所有其他图形对象都依赖于device。你的计算机里可以有一个到几个device,在Mnaged DirctX3D里,你可以控制任意多个device。          D

DirectX9 深度缓存

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

DirectX9 多重采样

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

DirectX9 表面

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