-
Notifications
You must be signed in to change notification settings - Fork 136
-
Struggle in calling framework to create it’s 3D screen on command.
I have: host application and MobiVM framework.
Goal - start 3D scene only at some specific controller, when user navigates to it.
By default, MobiVM framework creates file IOSLauncher.java that has methods main and createApplication.
Inside createApplication there is logic of creating 3D scene (in didFinishLaunching delegate method). But my app is already started.
So, my question is - how to call creation of graphics after app launched?
Beta Was this translation helpful? Give feedback.
All reactions
your questions has nothing to do with RoboVM but with LibGDX itself.
You should ask there if it can run in stand-alone UIView instead of ViewController/Application.
Better place to start asking is LibGDX community
if LibGDX allow such option -- then you can create RoboVM framework (not application) with your libGDX code and use it from native host.
Replies: 3 comments 1 reply
-
hi,
again asking same question: how exactly you are creating 3d screen? as there is IOSLauncher.java it seems to be a LibGDX application ?
e.g. question what you are trying to mix with your native app
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, we're trying to embed LibGDX framework wrapped by MobiVM inside our application.
Our app is just a bunch of view controllers and on one specific view controller we want to show 3d scene by launching LibGDX framework. Getting from it, for example, UIView to just add it on screen.
Beta Was this translation helpful? Give feedback.
All reactions
-
your questions has nothing to do with RoboVM but with LibGDX itself.
You should ask there if it can run in stand-alone UIView instead of ViewController/Application.
Better place to start asking is LibGDX community
if LibGDX allow such option -- then you can create RoboVM framework (not application) with your libGDX code and use it from native host.
Beta Was this translation helpful? Give feedback.
All reactions
-
@TarasEmti
I am prototyping iOS app with "native" UI made in view controllers. In second view controller I can run libgdx view and event add native UI controls at the top of gdx view. This requires to pass iOS application object and launch options because framework needs it (imo bad design because you can not inject view easily like in Android way with initializeForView). In view controller you need to emulate didFinishLaunching, didBecomeActive in view controller methods like viewDidLoad and it works. Probably better idea is to create framework with robovm (gradle robovmInstall) but it requires signing and I don't have device with iOS now (only simulator).
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1