What limitations does WPF have comparing to XNA?

南楼画角 提交于 2019-12-11 16:33:49

问题


I believe WPF is better for game in situations like creating buttons, textblock, label, progressbar...


回答1:


WPF is a very different technological approach to graphics from XNA.

First off, it's a retained mode API instead of an immediate mode API. This will give you less (almost no) control over how and when things are rendered when compared to XNA. It also potentially will have a higher cost in terms of performance and potentially lower responsiveness, at least with a lot of objects (when compared to a properly implemented XNA game).

That being said, WPF is much simpler to implement, especially for 2D graphics. WPF 3D can be simple, but awkward to use at times. It is much easier to handle the user interface in WPF when compared to XNA, however.

XNA also has the benefit of being cross platform (ie: Windows desktops, phone, and XBOX).



来源:https://stackoverflow.com/questions/4389671/what-limitations-does-wpf-have-comparing-to-xna

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