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?
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)
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.
精彩评论