我可以在 Windows Phone 8 应用程序中使用 OpenGL ES 吗? [英] Can I use OpenGL ES in a Windows Phone 8 app?

查看:23
本文介绍了我可以在 Windows Phone 8 应用程序中使用 OpenGL ES 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过一些地方说 Windows Phone 8 不支持 OpenGL,但我在 SDK 中找不到任何有用的东西.

I've read places that Windows Phone 8 will not support OpenGL, and I'm unable to find anything useful in the SDK.

那么,我是否能够或将来能够在我的 Windows Phone 8 游戏中使用 OpenGL (ES)?我有一个游戏,我不想在移植时完全重写为 DirectX.

So am I or will I ever be able to use OpenGL (ES) in my Windows Phone 8 game? I have a game I would like not to rewrite completely to DirectX when porting.

请引用好的来源,我发现的唯一内容是几乎没有信息的猜测和博客文章.

Please cite good sources, the only thing I've found are speculations and blog posts with little to no information.

推荐答案

WP8 不支持 OpenGL,但支持 Direct 3D 功能级别 9_3.如果您希望将游戏从 OpenGL ES 移植到 D3D,请查看Angle Project.Angle Project 有助于弥合 OpenGL ES 2.0 和 D3D 9 之间的差距.它目前还没有 WP8 目标,你会遇到 WP8 不支持运行时编译着色器的问题,但 Angle 项目仍然是一个很好的第一步.

OpenGL isn't supported on WP8, but Direct 3D feature level 9_3 is supported. If you're looking to port over a game from OpenGL ES over to D3D have a look at the Angle Project. Angle Project helps bridge the gap between OpenGL ES 2.0 and D3D 9. It doesn't have WP8 targeting just yet and you'll have issues with runtime compile shaders not being supported on WP8, but Angle project is still a good first step.

无论哪种方式,对于与其他平台的游戏可移植性,最好使用中间件游戏框架,例如 MonoGame、Unity、Cocos2D、Havok、Marmalade、SharpDX、Ogre、Autodesk Scaleform 或其他.这些引擎将主要在它们自己的框架内为您处理跨平台支持(每个引擎在代码和资产可移植性方面都有自己的限制).

Either way, for games portability with other platforms it's really best if you work with a middleware gaming framework such as MonoGame, Unity, Cocos2D, Havok, Marmalade, SharpDX, Ogre, Autodesk Scaleform or others. These engines will mostly handle cross platform support for you within their own framework (each with it's own limitations on code and assets portability).

如果您已经有一个现有的 OpenGL 游戏想要移植到 WP8,那么如果您继续前进,那么最好选择 Angle 项目.如果您刚刚开始创建跨平台的便携式游戏,那么选择看起来适合您的游戏需求的游戏中间件框架是您的最佳选择.

If you already have an existing OpenGL game you want to port over to WP8, than Angle project if your best bet going forward. If you're just starting out creating a cross-platform portable game than choosing a gaming middleware framework that seems right for your game's needs is the way to go.

这篇关于我可以在 Windows Phone 8 应用程序中使用 OpenGL ES 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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