Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use OpenGL ES in a Windows Phone 8 app?

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

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.

like image 562
Matsemann Avatar asked Nov 20 '12 22:11

Matsemann


2 Answers

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.

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).

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.

like image 180
2 revs, 2 users 93% Avatar answered Oct 07 '22 21:10

2 revs, 2 users 93%


Marmalade does let you write OpenGL ES 2.0 code and make it work in Windows phone 8 without making you do anything

Check this for more details: http://www.madewithmarmalade.com/windows-phone-8

like image 42
shbli Avatar answered Oct 07 '22 19:10

shbli