3D test environment construction

1. Download and install DX, and add the header file and library directory of DX in vs. In the project settings, add the specified path to the include directory (or additional include directory) and library directory (or additional library directory), such as the library directory. Add C:\Program Files (x86)\Microsoft DirectX SDK (August 2007)\Lib\x86 to the include directory and add C:\Program Files (x86)\Microsoft DirectX SDK (August 2007)\Include

2. To add dependencies, in the input tab of the linker, link d3d9.lib (d3d9d.lib) winmm.lib d3dx9.lib to the project

3. After adding the corresponding include directory to the specified path, you can add the d3dx9math.h header file and use related structures, such as D3DXVECTOR3. If a C2061 syntax error identifier __RPC__out_xcount_part is prompted during compilation, an error similar to this is caused by the include directory of windowsSDK and There is a conflict in the include directory of dx. The solution is to put the include library directory of dx at the bottom.

If VS has set inheritance configuration before and the previous order cannot be modified, remove the setting inheritance, re-include the directory order, and put dx at the end.

Supongo que te gusta

Origin blog.csdn.net/SwordArcher/article/details/126752555
Recomendado
Clasificación