Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm beginning iOS apps development, and my aim is to make games to launch on App Store. But I want to know if it's possible to program a game on Xcode with OpenGL ES (C++ game logic), integrate it on iOS with ObjC, and with that same game code (OpenGL ES + C++), implement it for Android with Java and to PC.

I have great interest to publish the same game on App Store, Google Play and specially Steam, and intent to build my personal 2D engine/API when I have more experience on graphic programming.

Do you know where can I find material to learn this?

share|improve this question
    
take a look at cocos2d-x –  Ali.S Jan 1 '13 at 20:14

1 Answer 1

You can use OpenGL ES 2.0 in C/C++ code in both platforms - Android and iOS. No need to use Java or Objective-C for calling OpenGL functions. As long as you don't use vendor/hardware specific OpenGL extensions your drawing code can stay exactly same for both platforms.

  • iOS has OpenGL ES 2.0 in C++ support natively
  • Android supports OpenGL ES 2.0 in C++ through NDK

  • To utilize the same OpenGL ES 2.0 in C++ code in PC, give a try to ANGLE which translates OpenGL-ES calls to Direct3D.

For, C++ OpenGL Resources

share|improve this answer
1  
C# is another lovely language. Available on Windows as .net, on Android as Mono for Android, and on iOS as MonoTouch. In addition, it's available on the PS Vita as PlayStation Mobile (let me see your C/C++ do that). This is especially relevant on Android, because you don't have to go down to the NDK. –  Panda Pajama Jan 29 '13 at 11:36
    
@PandaPajama, You are absolutely right. I agree with You. Thanks for your informative comment. :) –  Md. Mahbubur R. Aaman Jan 30 '13 at 3:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.