One interfaces with XNA through C#, but does anyone know what language the library itself is implemented in?
One interfaces with XNA through C#, but does anyone know what language the library
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the former XNA lead, Shawn Hargreaves:
By this, I expect that Shawn specifically means C++/CLI, given that the vast majority of XNA is managed code.
The unique feature of C++/CLI is that it is very good for writing code that bridges between the native and managed universes, including features that aren’t available from C#. In particular you can mix native and managed code in the one assembly, and call native code directly from managed code.
XNA makes extensive use of DirectX (plus a few other things), which is native code, thus making C++/CLI an excellent choice.
Of course, XNA handles all the native stuff so that you don’t have to. Stick to C# wherever possible.