Creating an iOS library or framework using libgdx (roboVM)

Is it possible to create an iOS library or framework using libgdx (RoboVM), which can be imported into Xcode?

Background: One of my colleagues created a 3D visualization application as a libgdx project for Android and a Windows desktop. It can be compiled to work on iOS using RoboVM. However, I would like to wrap additional UI elements around it using Xcode. I know that it can be created programmatically using RoboVM, but I would like to explore whether it is possible to bring existing work to Xcode. I do not need to edit the 3D visualization component, but add additional GUI elements around the 3D Vis window. I thought compiling libgdx (RoboVM) code into an infrastructure or library could be a solution that can be imported?

+54
ios frameworks xcode libgdx robovm
May 01 '14 at 13:38
source share
2 answers

I directly asked the RoboVM group. Their answer: this is not a native function, but it certainly can be done.

Full message ...

Hello,

Sorry for the late reply. This use case is not what we are going to do now. Perhaps, although you are ready to make some RoboVM fix. Find the Google RoboVM group and you should find others who have managed to do this.

We get this request that everyone knows, and then we will add support for this ultimately.

Regards, Niklas

+1
Jan 16 '15 at 14:29
source share

Yes you can do it.

All you need to create a method , say initRoboVM() , will be called by your code when you want to initialize libgdx. You will need to go the way to the application, which you can hard-code during testing.

initRoboVM() will need some changes, namely: it should not call your main Java application method, well, at least, what works well, libraries should not do IMO. Also should not be called rvmShutdown.

You can get more information from here.

Thank:)

+3
Dec 22 '14 at 10:44
source share



All Articles