Jump to content
  • Advertisement
Sign in to follow this  
stag609

DirectX or C++

This topic is 4417 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Wow two topics in one day, im on a roll! Anyway I was wondering what is better for creating games performance and price wise. I already have my eye on a book that teaches C++ and another that teaches directx. Both are adout fifty dollars but i was wondering if anyone has tried both and has any input. Hope to hear from you all, Thanx!

Share this post


Link to post
Share on other sites
Advertisement
Asking that is a bit like asking "What's better? Buying a car or buying driving lessons?" or "HTML or varibles?"

C++ is a language, and you'll need to know it or another language to use DirectX. DirectX is an API (Application Programming Interface), which is a set of classes and functions that you call from within a program (Which could be written in C++ or C#, or VB, or whatever).

Basically - learn C++ first. Learning DirectX without a reasonable understanding of a programming language that you can use with it is just going to cause you headaches.

Share this post


Link to post
Share on other sites
To develop games you essentially need a language and a multimedia library. C++ is a language and DirectX is a multimedia library. So the two are not mutually exclusive. In fact many games use the two combined.

Since you are new to C++, I'd reccommend learning that before you even start DirectX. Every DirectX book will assume you already know how to program (most likely with C++ or C#).

Share this post


Link to post
Share on other sites
Let' figure out the relationship between C++ and DX first.
C++ is a language, DX is a library of API(App Programming Interface).
When saying "developing games in DX", People mean use a language such as C++ to call APIs in DX to develop a game.
So, you need to know C++ first. Luckily some of the DX books for beginner will have a chapter or two summarizing the C++ knowledge you need.

Share this post


Link to post
Share on other sites
Hehe you might want to share the book titles with us.
By the way, comparing DirectX and C++ is not a good thing.
While C++ is a language, comparable with java, Python, Basic, etc.,
DirectX is a library written in C++ used to give your programs access to hardware accellerated graphics, sound, network, etc.
The hardware accellerated graphics part of DirectX is comparable with OpenGL.
Basically, if you want to learn DirectX, you need to learn a language like C++ or Visual Basic first.

edit: questions like this tend to be answered pretty fast... :D

Share this post


Link to post
Share on other sites
Quote:
Original post by RainZero
Luckily some of the DX books for beginner will have a chapter or two summarizing the C++ knowledge you need.


That sounds like a horrible way to learn C++. Honestly, I think to many beginners underestimate how long they should spend learning to program. You will at least need to work through a full book on C++ before you can understand what's going on with DirectX code.

Share this post


Link to post
Share on other sites
Thanx!
Sorry for the mixup!
Also can Html be used as a substitute or C++ or is html not used to program a game.
Again,
Thanx for everything!
See ya!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!