directX and .net

Started by
7 comments, last by Mace 17 years, 11 months ago
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.
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.
Sean Henley [C++ Tutor]Rensselaer Polytechnic Institute
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. =)
:==-_ Why don't the voices just leave me alone?! _-==:
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++.
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)
i still prefer just c++ clean code.

ARe people though doing .net stuff because it's the thing to do nowdays?
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.
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

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

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.

This topic is closed to new replies.

Advertisement