directx函数D3DXVec3Normalize包含在那个头文件和LIB文件中

wangcn 2008-10-29 06:58:11
directx函数D3DXVec3Normalize包含在那个头文件和LIB文件中
...全文
165 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Carmack Jiang 2008-10-30
  • 打赏
  • 举报
回复
Resolving Link Errors with D3DX Math Functions
The D3DX math functions are implemented identically in D3DX10 (D3DX10math.h) and D3DX9 (D3DX9math.h). This can cause link errors if a project implements both DirectX 9 and DirectX 10 code, and attempts to link a function from one header with the opposite library.

To eliminate the problem of including both headers, D3DX10math.h includes the following #define:

#ifndef __D3DX9MATH_H__
#define __D3DX9MATH_H__

To eliminate possible link errors, the DX SDK samples link to D3DX9 libraries first (D3DX9d.lib and D3DX9.lib) and then the D3DX10 libraries second (D3DX10d.lib and D3DX10.lib). These settings are under Project/Properties if you are using Visual Studio.

zzz822163 2008-10-30
  • 打赏
  • 举报
回复
Header: Declared in D3dx8math.h.
Import Library: Use D3dx8.lib.

19,469

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧