摘要: 可分为4步: 1:获取接口Idirect3D9的指针 IDirect3D9* d3d9 = 0; d3d9 = Direct3DCreate9(D3D_SDK_VERSION); 2:检查设备性能 D3DCAPS9 caps; d3d9->GetDeviceCaps(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &caps); 3:初始化D3DPRESENT_PARAMETERS结构 D3DPRESENT_PARAMETERS d3dpp; d3dpp.BackBufferWidth d3dpp.BackBu... 阅读全文
posted @ 2012-02-14 19:45 Tankw 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 今天正式转向3D学习,有了和DirectX打交道的机会。 1:所需软件 下载SDK,然后安装 http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6812 2:环境配置(vc6.0) Tools|Options|Directories 添加sdk的include和lib Project|Settings|Link/library 添加dxguid.lib d3d9.lib d3dx9.lib winmm.lib 3:示例 载入 SDK安装目录\Samples\C++的工程测试 阅读全文
posted @ 2012-02-14 19:42 Tankw 阅读(193) 评论(0) 推荐(0) 编辑