Jump to content
  • Advertisement
Sign in to follow this  
epicdean

C# Question

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

I have a quick Question is C# only good for XNA game programming. Because it seems like for everything else people use C++.

Share this post


Link to post
Share on other sites
Advertisement
.NET Framework programming for Windows applications.

C++ is the industry standard language. People "prefer" C++ because it is low level and gives alot of flexibility, the old performance difference (which is now irrelavent due to computer speeds, JIT programs can run as fast as fully compiled), there are literally hundreds more resources, API's, etc on the internet for C/C++ meaning a lot of choice.

There is a big chance that C# will replace C++ as the "Prefered" language of the industry in a few years, but with the lack of DirectX 10 bindings, for now i dont really see it happening.

Also currently games made in XNA lack network support afaik, which is going to be implemented in XNA 2.0 (though an external API might be usable with it for network programming but im not sure).

Share this post


Link to post
Share on other sites
No, C# is not only for XNA. You can write your own engine with it, using Managed DirectX or Tao's OpenGL binding (or both). You can use a pre-existing engine with a wrapper, like OGRE + MOGRE. You can find an engine already written in C# (and there are a couple, Purple# comes to mind). You could take your favorite engine and wrap it yourself if you were so inclined. You could also use C# as your "scripting" language with a little bit of work and knowledge of how to embed the runtime. There is also the old stand by of using C#/WinForms for your tools development.

Share this post


Link to post
Share on other sites
Quote:
Original post by ExcessNeo
There is a big chance that C# will replace C++ as the "Prefered" language of the industry in a few years, but with the lack of DirectX 10 bindings, for now i dont really see it happening.


Is there?
Surely C# requires .NET (well the binaries). Surely that'll limit it to Windows development and XBOX (assuming XBOX does/will support .NET, I really dont know).

Share this post


Link to post
Share on other sites
Quote:

but with the lack of DirectX 10 bindings...

There are at least two, actually. (SlimDX is getting some as I find the time to add them, and there is Demirug's project as well).

Share this post


Link to post
Share on other sites
Quote:

Surely C# requires .NET (well the binaries do anyway).

All current implementations of C# require a CLR implementation (which .NET includes); mono is another such implementation that is already implemented in varying degrees for a variety of other platforms and hardware (including some of the hardware used in consoles, which doesn't mean that mono is a complete solution, but it has potential).

Share this post


Link to post
Share on other sites
Quote:
Original post by dmatter
Surely C# requires .NET (well the binaries). Surely that'll limit it to Windows development and XBOX (assuming XBOX does/will support .NET, I really dont know).
See Mono and DotGNU Portable .NET. In theory there's nothing stopping someone from developing a C# implementation with no reliance on the CLR, although it's questionable if there'd be all that much benefit given the work involved.


In response to the initial question, no, C# is certainly not just for use with XNA, in addition to which there are plenty of other languages which are viable options for game development.

Share this post


Link to post
Share on other sites
Quote:
Original post by jpetrie
Quote:

but with the lack of DirectX 10 bindings...

There are at least two, actually. (SlimDX is getting some as I find the time to add them, and there is Demirug's project as well).


Well i meant like a "Managed DX10". But nice to hear there are some being made.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!