Where can I learn DirectX programming? [closed]
Asked Answered
T

3

22

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?

Tryst answered 5/5, 2011 at 19:16 Comment(5)
Why not start small with something like xnadevelopment.com/tutorials.shtmlDonative
@Helper: Can you do C++ with XNA? I thought it was a .NET-only framework.Parrie
Are you more interested in DirectX or in game development?Donative
@genpfault: Not really, but it's a tradeoff between versatility and simplicity.Gaudet
Are you familiar with C++? You need to learn C++ before DirectX.Icehouse
T
19

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.

Twist answered 5/5, 2011 at 19:36 Comment(1)
The problem is that the book's code examples don't compile now because of the changes in Window 10 since 2010Narcisanarcissism
G
6

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

Gaudet answered 5/5, 2011 at 19:19 Comment(4)
XNA is pretty easy to use, and would be a good start for 3D programming. However, if you're wanting to learn C++ at the same time, c# won't be good for you.Baroscope
Because this doesn't actually answer the question, I think this should be a comment..Herculean
It has been deprecated.Illona
@Illona and subsequently picked up by the MonoGame project, existing XNA projects mostly work with MonoGame.Petrify
H
3

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

Heida answered 6/9, 2013 at 5:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.