JavaFX 2.0 with LibGDX (or other)

Recently JavaFX 2.0 has caught my attention. I would like to use it for my GUI and use a graphical library like LibGDX for rendering. To be specific, I create a small game engine. JavaFX has the awesome GUI that I want, but doesn't seem to have all the graphical features I would like. So I want to use something like LibGDX for rendering.

Is this possible, or am I sticking to Prism?

Thanks in advance.

+4
source share
2 answers

You can create your user interface using scene2d, a set of libraries also included in the libGDX library libraries ( http://code.google.com/p/libgdx/wiki/scene2d ). All you have to do is create an actor for this library and add it to the scene / scene / screen. After that, apply some actions to your actor, and you will get the same effect as with JavaFX or Flash. If you need a special action that you cannot perform in rendering your application, and you need to encapsulate this action in your Actor, create a new actor that implements your main object (label, text text, ...) and redefines the method to act and draw to realize your own actor.

libGDX is not compatible (I think) with JavaFX, I create the whole application in LibGDX, this is a good deal.

+2
source

In the Libgdx + JavaFX thread, it looks like people have made progress on libGDX in a JavaFX application.

In particular, the following two agreements are mentioned:

+1
source

Source: https://habr.com/ru/post/1397423/


All Articles