Jump to content
  • Advertisement
Sign in to follow this  
jagguy

directX and .net

This topic is 4545 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

Is c++ directX game programming using .net mangaged code more so these days. I am not a fan of .net and prefer clean C++, unless someone can tell me the .net makes it so much easier to prgram directx games with.

Share this post


Link to post
Share on other sites
Advertisement
.Net can be much easier to set up and get coding in, but if you are already familiar with c++, just stick with that a pure unmanaged DirectX.

Share this post


Link to post
Share on other sites
Well, don't follow this if you're not comfortable, as this is just based on my own experience.

I got quite well at programming DirectX (D3D 8) in regular C++ code. I had implemented terrain, meshes, textures, and some other fairly simple applications using DX.

Now that I've bought Visual Studio .NET 2005 Pro, I started learning C# and C++ .NET. Now, I can easily create database-driven/more complex applications than I could with regular C++ and/or MFC.

I then downloaded the DX SDK (Feb. 2004 Release -- the last one to support Windows 2000 Pro). I started looking into MDX programming. And I also started looking into shader/FX development, which I never did before.

I got the hang of MDX/C# very quickly. There's not a lot to it. But you still don't want to jump into DX if you haven't done any C# yet. Just as you wouldn't want to get into pure DX before learning C++ and the Win32 API.

But I learned a lot of C# in a little amount of time. It doesn't take very long. At least not for me.

And just because I say it's easy, don't start getting into it. Make sure you find the same ease in using C#/MDX before you get really into it. I just wanted to help you decide what to do. I hope what I've said helps you. =)

Share this post


Link to post
Share on other sites
Quote:
Original post by jagguy
Is c++ directX game programming using .net mangaged code more so these days.


No, C++ still uses the original Direct API. If you use .NET languages such as C# or what-not, then you have to bust out the MDX (managed directx).

But according to some, MDX is a little easier to pick up than if you were using clean C++.

Share this post


Link to post
Share on other sites
If you are going to use .NET for DirectX then I would recommend you stay away from Managed C++ and go for C#. I am using C# and find it loads easier than Managed C++

Visual Studio is better suited for C# development because you can control how your code is formatted, better intelli sense, cleaner code overall.

IMO, C++.NET code is ugly (and I mean ugly)

Share this post


Link to post
Share on other sites
i still prefer just c++ clean code.

ARe people though doing .net stuff because it's the thing to do nowdays?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I would suggest C++/DirectX simply because there is more documentation. MDX is horrible when it comes to that. The XNA Framework is taking MDX's place next year, so you mind as well learn C++ for now.

Share this post


Link to post
Share on other sites
Quote:
Original post by jagguy
i still prefer just c++ clean code.
Use it then [smile]

I use C++/"native" DirectX simply out of choice rather than any fundamental reason why its better than the alternatives.

Quote:
Original post by jagguy
ARe people though doing .net stuff because it's the thing to do nowdays?
There are always going to be people who jump on the technology bandwagon, but most people will weigh up the pro's/con's of each route and pick the one that bests suits them.

I started properly way back in VB6, had a run in with some C-like languages before that, but I loved VB6 because I could easily get to the "meat" of my projects and actually complete them. I wasn't spending days/weeks messing around with implementation details and frameworks/engines etc...

From what I've read, similar things seem to be true with .NET - you can get to the "meat" quicker and without less hassle from the implementation details.

hth
Jack

Share this post


Link to post
Share on other sites
Quote:
Original post by jagguy
Is c++ directX game programming using .net mangaged code more so these days.

I am not a fan of .net and prefer clean C++, unless someone can tell me the .net makes it so much easier to prgram directx games with.


You should look at some sample tutorials and build your own opinion around it.
As far as making it easier to program, imo thats the beauty with C# and MDX.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!