Robovm backend updates
A couple of quick updates. First of all, you can track the progress and todos on the RoboVM backend in this file.
A couple of bugs have been fixed, including Preferences and various FileHandle/Files issues. Thanks for Niklas and Nex for that. Pixels per inch/centimeter calculations had a bug as well, that’s been fixed. The graphics context didn’t have a depth buffer, that’s been fixed as well.
I extended the IOSApplicationConfiguration so that you can specify the color depth, depth buffer precision, stencil precision and multisampling. You can also set a preferred frames per second value.
There are still a few issues that need ironing out. Multi-touch support has the highest priority, followed by orientation and accelerator fixes. After those it’s time to test all other features.
If you ran into issues with the JSON class, here’s a tip on how to get things going. You need to tell RoboVM to force linking in the classes you read in via JSON through reflection. You can to that in the robovm.xml file like so:
<forceLinkClasses> <pattern>com.badlogic.gdx.scenes.scene2d.ui.*</pattern> </forceLinkClasses>
Which links in all classes from that package. You can also use other Ant like patterns, e.g. ** to include everything in a package recursively.
And finally, check the forums, a couple of folks already ported their games over, reporting very nice improvements in performance. Here’s Delver which i ported in about 30 minutes
Stuff is in constant flux, so make sure you update both the libgdx nightlies and the RoboVM Eclipse plugin. To update the RoboVM libgdx stuff, make sure you replace gdx.jar, gdx-backend-robovm.jar, and the ios/libgdx.a file in your RoboVM project!