More RoboVM Backend Updates
Today i continued working on some RoboVM backend todos. Multi-touch is now working properly, the fix was rather simple, once you understand that you have to enable multi-touch on a view in a single line of code on iOS.
You can now also use the gdx-freetype extension with the RoboVM backend. From the nightlies, get the extensions/gdx-freetype/ios/libgdx-freetype.a file, put it in your $ROBOVM_PROJECT/libs/ios folder, then add the following to your robovm.xml file:
<libs> ... <lib>libs/ios/libgdx-freetype.a</lib> </libs>
You also have to link to the gdx-freetype.jar in your RoboVM project (or link to it from your core project, and make sure it’s exported in Eclipse).
I also managed to finally get the Bullet physics extension compiling for iOS. LLVM/Clang previously went into a “i’ll eat all your CPU” infinite loop. Applied a quick fix found on the bullet forums, and things compiled. Our wrapper uses SWIG to generate the JNI bridge, which in turn uses some more or less advanced JNI/VM features RoboVM doesn’t support yet. We’ll have to wait until that gets fixed in RoboVM before we can have our physically correct cloth simulations run on iOS.
In other news, i got all of Delver working on iOS today, including audio, which meant i had to convert all OGGs to MP3s for the iOS port. Apart from minor GC hiccups every now and then, the game runs at a splendid 60fps on my iPad 4.
Tomorrow i hope to find some time to tackle accelerometer and device orientation issues. Check the RoboVM backend todo list to get to know about the latest status.