Where can I learn DirectX programming? [closed]

2019-03-09 13:34发布

I want to learn DirectX in C++ programming. I decided to learn DirectX, so I found some tutorials online, but they all were very complicated 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.

Can anyone recommend a good tutorial/book?

标签: c++ directx
3条回答
Bombasti
2楼-- · 2019-03-09 14:25

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

查看更多
beautiful°
3楼-- · 2019-03-09 14:33

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.

查看更多
小情绪 Triste *
4楼-- · 2019-03-09 14:34

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

查看更多
登录 后发表回答