Login  Register

Re: GLJPanel for LibGDX JOGL backend

Posted by adam_law on Jun 25, 2015; 9:54am
URL: https://forum.jogamp.org/GLJPanel-for-LibGDX-JOGL-backend-tp4034741p4034759.html

gouessej wrote
It will be probably never merged into the official LibGDX project but it doesn't prevent anybody from using it. If you really need something "official", you will never use our stuff. We can't force the LibGDX maintainers to accept our pull requests.
I fully understand, stability, currency in a working solution are much more important to me than adhering to anything official :)
 
gouessej wrote
I can't confirm. I use OpenJDK and I don't have OpenJFX available on my distro yet. Just give it a try and let us know.
I will within today or tomorrow.

"Xerxes wrote
Trying to combine atrifacts from two different builds using two differrnt version numbers is not recommended, it may work but it is not something that jogamp or libgdx can support. Instead i reccomend that you do the following:

The latest JOGL libgdx port is in sync with LibGDX 1.6.3-SNAPSHOT
if you checkout gouessej's libgdx master tree

git clone https://github.com/gouessej/libgdx
cd libgdx

and run

mvn install

you will build both libgdx 1.6.3-SNAPSHOT and gdx-backend-jogamp 1.6.3-SNAPSHOT and install them both into your own local maven repository.

I highly recommend that you use the combination of libgdx and gdx-backedn-jogamp artifacts produced from one build because that is a combination that we can support.

Inside your applications projects build.gradle file you then add mavenLocal() to the list of repositorys
and use 1.6.3-SNAPSHOT as the version of libgdx you want to use.

If your build.gradle file looks like this then you will always use the latest libgdx + jogamp backend snapshot version from your local maven repository!
gouessej wrote
Xerxes is right and the version of LibGDX on my repository is only about 10 commits behind the "official" one.
Thanks for the detailed steps. I actually already checked out gouessej's master tree earlier today, and modified my gradle build to use this libgdx version for my project, to test the backend. I've been writing correspondence and doing other stuff, so I haven't been able to sit down and have a go at it yet. I'm excited to try once I get back home. I'll let you all know how it goes :)