C# Question
I have a quick Question is C# only good for XNA game programming. Because it seems like for everything else people use C++.
No, you can use a number of other libraries as well. Check out the Tao libraries for OpenGL, OpenAL, ODE (I think) and some others.
.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).
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).
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.
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).
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).
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).
Quote:Original post by dmatterSee 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.
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).
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.
Quote:Original post by jpetrieQuote:
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement