Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / What is XNA?

Author
Message
mnemonic
18
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 27th Mar 2012 12:58
Hi! I'm reading a book about DX11 programming with c++. In the book they just mentione something about XNA, and from what I understand it's built upon directx. Then my question is: is it a class library that you can use from within any language, like c++, c#? or is it a separate compiler like a 3d language similar to DBpro?

Can you create any DX devices? I mean, using any DX sdk. Is it stable? Is it easy to use? Easier than the DX API? Would you recommend it?

Best!

<a href="http//www.memblockgames.com"www.memblockgames.com</a>
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 27th Mar 2012 13:09
XNA is a DirectX wrapper for C#. C# is a pretty powerful language, though it's not as fast as C++ and only works on Windows platforms. The upside is that it's a lot easier to use XNA than it is to use pure DirectX in C++.

I suggest trying it out, and once you've got a decent grip on how DirectX actually works (remember not to get confused between directX and C#), you can then move onto C++.

"everyone forgets a semi-colon sometimes." - Phaelax
mnemonic
18
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 27th Mar 2012 13:12
Thanks! I will try it out.

www.memblockgames.com
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 27th Mar 2012 15:34
..a warrior princess?

DeadTomGC
14
Years of Service
User Offline
Joined: 11th Aug 2010
Location: LU
Posted: 27th Mar 2012 19:08
XNA can be used for more than just the Windows. It can be used to make Xbox and windows phone 7 games.


Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 28th Mar 2012 06:11
Quote: "C# is a pretty powerful language, though it's not as fast as C++ and only works on Windows platforms."


Actually, C# as a language is available on a variety of platforms, including Mac OS X and Linux through the open source Mono project. That said, I know of no version of Xna that works on those platforms, as Direct X is not available on them.

Also, I've seen some benchmarks that place managed code written in C# code ahead of equivalent C++ code in certain situations - since everything is JIT compiled it gets pretty fast, and it really comes down to a variety of other, far more complicated and often situation specific factors.
Jeff032
17
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 28th Mar 2012 14:42 Edited at: 28th Mar 2012 14:43
Quote: "That said, I know of no version of Xna that works on those platforms, as Direct X is not available on them."


http://monogame.codeplex.com/

MonoGame is a work in progress OpenGL implementation of XNA 4.

Login to post a reply

Server time is: 2025-05-19 15:46:13
Your offset time is: 2025-05-19 15:46:13