Best way to convert iPhone 3-D game code to run on Android devices?

I need to convert our existing game code for iPhone 3-D to run Android. I recently developed a two-dimensional game on the Android platform and now I'm moving towards 3-D. These days, I'm exploring options to convert iPhone / iPad and Symbian code to work on Android devices.

Should I write all the iPhone 3-D game code (previously written in Objective-C using OpenGL ES) from scratch in Java using the OpenGL apis, again?

I have also successfully installed and studied Android NDK samples (especially the San Angles sample code). I am also looking for 3-D using the OpenGL example on Android.

Is it recommended to use Android NDK to convert iPhone code to the Android platform, or should I code in Java?

I look forward to your suggestion.

+6
source share
1 answer

Well, it will be a hard trip ...
If the Objective-C code is clean and minimalistic, you should cross-compile with a suitable GCC with a medium adaptation. Since Android is tied to Java, C shells for Java are often used to use system API functions. Typically, Java developers work the other way around ... Fortunately, OpenGL ES is initially available for C code.

+1
source

Source: https://habr.com/ru/post/885788/


All Articles