Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS OpenGL ES compatible with Android OpenGL ES?

In theory, can I write a game for iOS in openGL ES and expect to easily port it to Android? How about from Android to iOS?

like image 626
Moshe Avatar asked Dec 12 '22 19:12

Moshe


2 Answers

There are differences in Android and iOS game development that you need to take into account:

In android you need to support multiple graphics chips:

  • Different texture compression support
  • Major differences in performance

Different OpenGL ES implementations:

  • Buggy gluUnproject implementation in Android (there are custom implementations, for example )
  • Lack of glGet* functions in Android (however you can use MatrixTrackingGL)
like image 158
cement Avatar answered Jan 09 '23 20:01

cement


Yes, I believe that if you write a game in C/C++ for iOS, to port it to Android wouldn't be too much of a hassle. However, if you write the game in Objective-C, then it could be quite a hassle indeed.

like image 29
Jacob Relkin Avatar answered Jan 09 '23 20:01

Jacob Relkin