C++ 在哪里可以学习 DirectX 编程?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5902954/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 19:08:01  来源:igfitidea点击:

Where can I learn DirectX programming?

c++directx

提问by Janman

I want to learn DirectX in C++ programming. I decided to learn DirectX, so I found some tutorials online, but they all were verycomplicated and hard to understand. I have spent 3 days on a tutorial, and I have read everything, but I still can't even make an program that initializes DirectX. I think its very hard to learn that way.

我想在 C++ 编程中学习 DirectX。我决定学习DirectX,所以在网上找了一些教程,但都非常复杂,难以理解。我花了 3 天时间在一个教程上,我已经阅读了所有内容,但我仍然无法制作一个初始化 DirectX 的程序。我认为以这种方式学习非常困难。

Can anyone recommend a good tutorial/book?

谁能推荐一本好的教程/书?

采纳答案by Jeff Linahan

The best resource I know of for learning DirectX is Frank Luna's book. It does assume you know C++. If you can get up to the chapter on the rendering pipeline and understand it, you're probably ready for DirectX. As for being hard to remember and complicated, this book does a great job of making sense out of the madness, and besides I don't memorize most of the structs used for initialization.

我所知道的学习 DirectX 的最佳资源是Frank Luna 的书。它确实假设您了解 C++。如果您能读懂渲染管道的章节并理解它,那么您可能已经准备好使用 DirectX。至于难以记住和复杂,这本书在疯狂中做得很好,而且我没有记住大多数用于初始化的结构。

回答by user541686

Try XNA Game Studio, which is somewhat based on DirectX but a loteasier. (You need C# though.)

试试XNA Game Studio,它有点基于 DirectX,但容易得多。(不过你需要 C#。)

回答by ANXIOUS117

just so you know you should understand what your reading when it comes to programming tutorials don't memorize. DirectX is basically a middle man between you and the hardware it lets you communicate with the hardware devices you're using like the graphics and video cards without having to know too much about them, but you should still have a good understanding of how they work before you try to create complex 3D Animations and such so if you're just starting off learn how to use the programming language and then start off with a simpler API or library like SDL, or Allegro for example DirectX is long and complicated and you should learn to walk before you run, :D good luck and happy programming

只是为了让您知道您应该了解您在阅读编程教程时没有记住的内容。DirectX 基本上是您和硬件之间的中间人,它让您可以与您使用的硬件设备(例如显卡和视频卡)进行通信,而无需对其了解太多,但您仍然应该很好地了解它们的工作原理在您尝试创建复杂的 3D 动画等之前,如果您刚刚开始学习如何使用编程语言,然后从更简单的 API 或库(如 SDL,或 Allegro)开始,例如 DirectX 既长又复杂,您应该在跑步之前先学会走路, :D 祝你好运,编程愉快