用于移植到Windows 8 Phone的OpenGL或DirectX Monogame模板? [英] OpenGL or DirectX Monogame Template for porting to Windows 8 Phone?

查看:100
本文介绍了用于移植到Windows 8 Phone的OpenGL或DirectX Monogame模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我想用MonoGame创建一个可在Windows桌面和Windows 8手机上使用的游戏,我想知道Windows桌面版本的哪个MonoGame模板会更好,OpenGL模板还是DirectX模板?

Basically I'm wanting to create a game with MonoGame that works on both Windows Desktop and Windows 8 Phones and I was wondering which MonoGame template for the Windows Desktop Version would be better, the OpenGL template or the DirectX one?

我听说Windows 8 Phone不支持OpenGL,所以我本质上是想知道哪个模板可以让我简单地将大多数代码复制并粘贴到Windows Phone Project中,并使它仅能与之兼容.小改动.

I've heard that Windows 8 Phone doesn't support OpenGL so I'm essentially wanting to know which template would allow me to simply copy and paste most of the code to the Windows Phone Project and have it still work with only minor alterations.

推荐答案

MonoGame框架在某些Microsoft平台上使用DirectX(通过SharpDX),在其他平台上使用OpenGL.但是,这不会更改MonoGame的公共界面.

The MonoGame framework uses DirectX (via SharpDX) on some of the Microsoft platforms and OpenGL on other platforms. But, this does not change the public interface of MonoGame.

您可能会为桌面选择DirectX(因为它是本机"),并且将始终为Windows Store Apps选择DirectX,因为这是唯一已为Store批准的框架.当然,由于没有适用于iOS,Android,Mac和其他平台的DirectX,MonoGame将选择OpenGL后端.

You could probably select DirectX for the desktop (as this is "native") and will always be selected for Windows Store Apps as this is the only framework that has been approved for the Store. And, of course, as there is no DirectX for iOS, Android, Mac and other platforms, MonoGame will select the OpenGL backend.

也请参见此处: Windows平台使用OpenGL和/或DirectX?

DirectX和OpenGL只是MonoGame的后端
您的选择不会影响代码,您可以随时更改包装器.

DirectX and OpenGL are just the backend of MonoGame
Your choice will not affect the code and you can change wrapper at any time.

这篇关于用于移植到Windows 8 Phone的OpenGL或DirectX Monogame模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆