简体   繁体   English

C ++ DirectX标头

[英]C++ DirectX Headers

ID: QTCreator 2.1, QT 4.7. ID:QTCreator 2.1,QT 4.7。 Language: C++ 语言:C ++

I'm working on a program that requires me to take screen shots of DirectX. 我正在开发一个程序,要求我拍摄DirectX的屏幕快照。 I have downloaded the SDK and found the necessary include files to access DirectX. 我已经下载了SDK,并找到了访问DirectX所需的包含文件。 After including that D3DX10.h header, I realized I need to include a lot more headers. 包含D3DX10.h标头之后,我意识到我需要包含更多标头。 So my questions are: 所以我的问题是:

  1. Is there a way to add DirectX capability without including a ton of headers? 有没有增加DirectX功能而又不包含大量标题的方法?
  2. How have people done this in the past without cluttering up their projects? 人们过去如何做到这一点而又不会弄乱他们的项目?
  3. Should I try to compile the SDK into a dll and use that instead (or does it alrady exist and I didn't find it yet)? 我是否应该尝试将SDK编译为dll并使用它(或者它确实存在并且我还没有找到)?

I'm new to adding sdk's beyond what ever comes with my IDE so I have little experience in this area. 我是我的IDE以外的其他新成员,因此我在这方面的经验很少。

Thanks for the help, 谢谢您的帮助,

Jec. 杰克

You shouldn't need that many headers..unless you're trying to do a lot. 您不需要那么多的标头..除非您尝试做很多事情。 To make a very basic directX program, you should only need to include 1 or 2 directX header files. 要制作一个非常基本的DirectX程序,您只需要包含1或2个DirectX头文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM