gpt4 book ai didi

c++ - 使用 DirectX11 时无法访问 DirectXMath.h

转载 作者:行者123 更新时间:2023-11-28 07:00:16 25 4
gpt4 key购买 nike

我目前正在使用 directx 开发一个小型 3d 游戏,但我遇到了一些问题,无法访问 DirectXMath.h 文件,因此我可以使用它包含的反函数。我目前将它包含在我的“stdafx.h”标题中。我没有遇到来自当前位于该文件中的其他包含文件的任何其他问题。

有人知道为什么我无法访问 XMMatrixInverse 函数吗?我目前正在使用 C++。

最佳答案

假设找到 header ,您可能会丢失命名空间 using namespace DirectX;

关于c++ - 使用 DirectX11 时无法访问 DirectXMath.h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22593567/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com