Sign in to follow this  
Shashwat Rohilla

Managed DirectX and XNA

Recommended Posts

I downloaded a DirectX SDK to learn it in C++.
But I saw that there was something called managed DirectX which can be written in C# using Microsoft.Direct.* namespaces.

[b]So what is the difference between manager DirectX and XNA?[/b]

Share this post


Link to post
Share on other sites
[url="http://en.wikipedia.org/wiki/Managed_DirectX"]MDX[/url] is deprecated, if you want to use D3D directly in C# you should use [url="http://en.wikipedia.org/wiki/SlimDX"]SDX[/url]. [url="http://en.wikipedia.org/wiki/Microsoft_XNA"]XNA[/url] is a higher level abstraction layer built on top of D3D.
(wikipedia is your friend)

Share this post


Link to post
Share on other sites
XNA removed the need to do most of the DirectX specific code. You no longer have to initalize devices and parameters and what not. It handles all messy code involved with loading images, input, sound, etc. If you're just starting out, I can't think of a good reason to use SlimDX over XNA. Likewise, using XNA will be much less complicated vs. straight DirectX. You will spend a lot of time just getting up a blank screen in C++. With XNA you can have stuff moving on the screen in a few minutes.

Share this post


Link to post
Share on other sites
[quote name='ChurchSkiz' timestamp='1307472157' post='4820623']
XNA removed the need to do most of the DirectX specific code. You no longer have to initalize devices and parameters and what not. It handles all messy code involved with loading images, input, sound, etc. If you're just starting out, I can't think of a good reason to use SlimDX over XNA. Likewise, using XNA will be much less complicated vs. straight DirectX. You will spend a lot of time just getting up a blank screen in C++. With XNA you can have stuff moving on the screen in a few minutes.
[/quote]

You are right that I was unable to get even a blank screen in C++.

I know the basics of XNA. I have created a game in that.
If MDX is deprecated, then shall I start with SlimDX?
Can anyone give me the link to download it?

What is Direct3D? Is it DirectX or something different?

Share this post


Link to post
Share on other sites
[quote name='ChurchSkiz'][color="#1C2837"][size="2"]
Can anyone give me the link to download it?[/size][/color]
[/quote]

[url="http://lmgtfy.com/?q=slimdx+download"]Google is your friend.[/url]

[quote name='ChurchSkiz' ]
What is Direct3D? Is it DirectX or something different?
[/quote]

Direct3D is a part of DirectX.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this