简体   繁体   English

带有Visual Studio 2012 Express的DirectX 9

[英]directx 9 with visual studio 2012 express

I decided to learn directx on my old laptop that has an ATI Radeon X1200 card. 我决定在装有ATI Radeon X1200卡的旧笔记本电脑上学习Directx。 Using the program GPU-Z.0.7.2 I found that my card support directx 9 /SM2.0 and has shadrers of 4 Pixel / 2 Vertex. 使用GPU-Z.0.7.2程序,我发现我的卡支持DirectX 9 /SM2.0,并且着色器为4 Pixel / 2 Vertex。 Using dxdiag on my windows 7 I found that directx version is directx 11. Then I downloaded visual studio 2012 express but I did not install it yet. 在Windows 7上使用dxdiag,我发现DirectX版本是DirectX11。然后我下载了Visual Studio 2012 Express,但尚未安装。 Since my card supports only directx 9 im going to read the book Introduction to 3D Game Programming with DirectX 9. Now what version of the direct SDK do I have to download ? 由于我的卡仅支持DirectX 9,因此要阅读《使用DirectX 9进行3D游戏编程简介》一书。现在我必须下载什么版本的Direct SDK? and after downloading the SDK what should I install first the SDK or visual studio 2012 express ? 在下载SDK之后,我应该先安装SDK还是Visual Studio 2012 Express? Is the book ok ? 这本书还好吗? I mean there are other editions of the book but they supprt directx 9c , directx 10 and directx 11. 我的意思是这本书还有其他版本,但它们支持DirectX 9C,DirectX 10和DirectX 11。

Thank u so much. 非常感谢你。

您应该能够使用Direct3D 11,同时仍可以通过D3D_FEATURE_LEVEL枚举来定向Direct3D 9设备,该枚举可以在D3D11CreateDeviceAndSwapChain指定。

The Microsoft DirectX SDK (June 2010) contains both DirectX 11 and DirectX 9 headers and documentation. Microsoft DirectX SDK(2010年6月)包含DirectX 11和DirectX 9标头和文档。 The install order doesn't really matter (I've used the SDK in Code::Blocks before installing Visual Studio and it worked fine) since it's really just a collection of header files and debug dlls, plus a bunch of stuff to get you started. 安装顺序并不重要(在安装Visual Studio之前,我已经在Code :: Blocks中使用过SDK,并且效果很好),因为它实际上只是头文件和调试dll的集合,还有很多东西可以帮助您开始。

Personally I don't use books when learning a library - I look at the documentation, which is a firsthand explanation of the material, or search up a tutorial (though you should take anything you read in a tutorial with a grain of salt). 就个人而言,在学习图书馆时,我不会使用书籍-我会看文档(这是对材料的第一手说明)或搜索教程(尽管您应该从教程中读到的东西含糊不清)。 There are also several websites and videos that explain the graphics pipeline really well. 还有一些网站和视频可以很好地解释图形管道。 I can't really comment on the book otherwise. 否则我真的不能评论这本书。

Using dxdiag on my windows 7 I found that directx version is directx 11. 在Windows 7上使用dxdiag,我发现DirectX版本是DirectX 11。

This is the DirectX runtime version, not SDK version. 这是DirectX运行时版本,而不是SDK版本。 so it does not matter which version of SDK you use to develop your program. 因此,使用哪个版本的SDK来开发程序都没有关系。

As others said, the installation order does not matter. 正如其他人所说,安装顺序无关紧要。

The book you mentioned is good for new starters. 您提到的对新手来说是好的。 but I recommend you to start from the shader version, since fixed pipeline functionalities such as transforming and lighting was abandoned start from DirectX 10, they all moved to shaders, there is a shader version of that book. 但我建议您从着色器版本开始,因为从DirectX 10开始放弃了固定的管道功能(例如,变换和照明),所以它们都移至了着色器,因此该书有一个着色器版本

there are lots of materials and resources to learn DirectX, I paste some pages for your reference. 学习DirectX的材料和资源很多,我粘贴了一些页面供您参考。

http://www.directxtutorial.com/LessonList.aspx?listid=9 http://www.directxtutorial.com/LessonList.aspx?listid=9

http://www.braynzarsoft.net/index.php?p=DX11Lessons http://www.braynzarsoft.net/index.php?p=DX11课程

http://www.rastertek.com/tutindex.html http://www.rastertek.com/tutindex.html

DirectX SDK examples are also very good choice. DirectX SDK示例也是很好的选择。

  • If you not targeting Windows XP or earlier OS , throw DirectX 9 book, forget it (same with DirectX 10 if you not targeting Vista without Service packs), and take DirectX 11 one 如果您的目标不是Windows XP或更早的操作系统 ,则扔掉DirectX 9的书,将其忘记(如果您不针对不带Service Pack的Vista而与DirectX 10相同),并购买DirectX 11
  • Luna's books are great, but, IMO, online tutorials that zdd mentioned are better. Luna的书很棒,但是,IMO, zdd提到的在线教程更好。 And free. 而且免费。 But still, to write something cool, you will need to read much more than one book or one series of tutorials. 但是,要写一些很棒的东西,您需要阅读的不止一本书或一系列教程。 Take the best parts and mix it! 采取最好的部分并混合!
  • You can develop with DirectX 11 API (for Windows Vista SP2 and later OSes), but still targeting DirectX 9 hardware ( feature level 9.3 ). 您可以使用DirectX 11 API(适用于Windows Vista SP2和更高版本的OS)进行开发,但仍可以使用DirectX 9硬件( 功能级别9.3 )。 Shaders is a must. 着色器是必须的。 Love them! 爱他们!
  • When you installing Visual Studio 2012 or higher, you also get a copy of Windows SDK. 在安装Visual Studio 2012或更高版本时,您还将获得Windows SDK的副本。 Do not install standalone DirectX SDK , because it is obsolete. 不要安装独立的DirectX SDK ,因为它已过时。 Since Windows 8, DirectX SDK is a part of Windows SDK. 从Windows 8开始,DirectX SDK是Windows SDK的一部分。 Install standalone DirectX SDK only if you really-really need that old stuff, such as D3D11X or effects framework (for Luna books). 仅在确实需要旧版本(例如D3D11X或Effects框架(适用于Luna书籍))时,才安装独立的DirectX SDK。

Happy coding! 编码愉快!

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

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