ID: QTCreator 2.1, QT 4.7. Language: C++
I'm working on a program that requires me to take screen shots of DirectX. I have downloaded the SDK and found the necessary include files to access DirectX. After including that D3DX10.h header, I realized I need to include a lot more headers. So my questions are:
- Is there a way to add DirectX capability without in开发者_如何学编程cluding a ton of headers?
- How have people done this in the past without cluttering up their projects?
- 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)?
I'm new to adding sdk's beyond what ever comes with my IDE so I have little experience in this area.
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.
精彩评论