Does XNA effectively replace Managed Directx? [duplicate]

ぐ巨炮叔叔 提交于 2019-12-18 04:46:06

问题


Possible Duplicate:
Comparison between XNA and DirectX (C#)

The subject speaks for itself.

Does XNA effectively replace Managed DirectX?

We have a few projects using managed DirectX in VB.NET. I was considering porting one over to XNA, but wonder whether it's worth the effort.


回答1:


Does XNA effectively replace Managed DirectX? According to the wikipedia entry for MDX it does. At least for game development purposes.

XNA aims to be a framework for making games, so it is easy to get started. Managed DirectX is "just" a managed wrapper over the APIs, so you have more freedom but probably have to do more framework style code yourself.

Also, now there's the API Code Pack, which provides managed wrappers around the latest DirectX APIs. To me that sounds like an updated version of what Managed DirectX used to be.

This answer is dated as XNA is no longer officially supported. Anyone interested in using DirectX from managed code should check out Win2D in addition to the suggestions in the other answers to this question.




回答2:


It's not exactly the same. One thing you should consider is that Managed DirectX will no longer be developed. So if you change to XNA, you support for DirectX 9, but not DirectX 10 (or 11 soon). So if you really want to replace Managed DirectX, you should have a look at SlimDX. It's not (yet) as large as MDX, but this will change and everything should be supported. The best thing is, it supports also DirectX 10. I used it myself and I guess it's work a look.



来源:https://stackoverflow.com/questions/1502390/does-xna-effectively-replace-managed-directx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!