Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Initialize graphics only inside some concrete screen #654

Answered by dkimitsa
TarasEmti asked this question in Q&A
Discussion options

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?

You must be logged in to vote

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

Comment options

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

You must be logged in to vote
1 reply
Comment options

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.

Comment options

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.

You must be logged in to vote
0 replies
Answer selected by Tom-Ski
Comment options

@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).

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /