• Register


Fakhir joined

This member has provided no bio about themself...

RSS My Blogs


This is my first ever blog post!

For my next game i've decided to make it very "cross-platform" and port to many platforms (initially probably 2-3 :) ). Entire game code will be written in C++ and OpenGL ES 2.0. Since this is my first attempt, I really tend to keep the game as simple as possible :) . Following platforms are in the target list:

1) Desktop (Win / Mac / Linux)
Since direct support for GL ES is weak on desktops specially Windows, I am considering 3rd party EGL bindings. PowerVR and ATI SDKs for OpenGL ES 2.0 are good options as they come with GLES 2.0 simulators. But an alternative option I found really tempting was "Angle". It provides headers and libraries to develop GLES 2.0 applications on Windows. It appears light weight, under the hood angle translates GLES calls to DirectX. For basic window management one could write small amount of system-specific code. I will discuss this in future blog post after some experimentation.

2) Android
Android SDK and NDK supports GLES 2.0. So the porting won't face any real issues except to write the window initialization and little system specific code.

3) iOS
Exactly the same as android. Native support for GLES 2.0. Xcode also has a nice built-in emulator.

4) WebGL
This is probably the easiest :) . Use emscripten to convert the entire C++ / GLES 2.0 game to HTML5 with almost no modifications. Entire Unreal 4 engine has been ported to HTML5! Emscripten has very good built-in support for GLES 2.0 and GLFW. The community is very active and lots of material available on the internet.

5) Flash
You can port you existing C++/GLES code to Flash using Crossbridge. Epic have ported their Unreal 3 engine and you can check out the demo. But i think that this is pretty much dead. It is no longer being regularly maintained and an inactive community. But this may be OK for small 2D games that I intend to make.

I will consider following in my next game. But for now I'll skip them this time and explore them in future:

6) Black berry
Black berry provides their own SDK.

OUYA development is almost like android. They also provide their own SDK.

8) Nook
9) Various consoles

Majority of the mobile devices support OpenGL ES 2.0. It appears to be a good idea to write a single portable GLES 2.0 renderer which would work on almost all the devices without any changes. It even works with traditional desktops (even though ES2 is not as powerful as the full blown OpenGL but it is pretty good for 2D games).

Next time we'll talk about how to organize a bullet proof directory structure for such a project.

Happy coding...


Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Last Online
Pakistan 🇵🇰
Become friends
Member watch
141,925 of 664,222
546 (1 today)
Time Online
60 seconds
Activity Points
Site visits
Send Message