Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (780)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  What exactly does LibGdx compile to natively?  (Read 1278 times)
0 Members and 1 Guest are viewing this topic.
Offline johnnyJava

Senior Newbie

« Posted 2014-04-28 03:07:44 »

For example, with ios, I have searched, found this,

Nothing more recent or informative.

From what I could barely understand, Libgdx looked like it compiled to lots of different platforms, including ios.  Then I read posts about RoboVM vs Libgdx, and finally Libgdx with RoboVM on the backend (or vice versa, I don't remember.)

If I'd like to play my game on ios, which do I use?  Finally, I read on Libgdx they deprecated one library, and now they use RoboVM.  I'm probably answer my own question, but when I see this on the Libgdx site,

"Desktop/Android/BlackBerry/iOS/HTML5 Java game development framework"

That looks to me like I can write something in Java, compile it, and voila, it works on all these platforms.  That does not seem to be the case, however.  Do I misunderstand?  Thanks again for your patience.

Offline Gibbo3771

JGO Kernel

Medals: 128
Projects: 5
Exp: 1 year

Currently inactive on forums :(

« Reply #1 - Posted 2014-04-28 03:33:38 »

Your thinking is right, it compiles it to what is needs.

Forvinstance, HTML5. It gets wrapped in Java script.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline johnnyJava

Senior Newbie

« Reply #2 - Posted 2014-04-28 22:22:24 »

But don't you have to get all kinds of other programs, so it can do that?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Slyth2727
« Reply #3 - Posted 2014-04-29 00:56:54 »

There's this thing called JNI. I'm not too familiar with it, but it's what LWJGL uses to boil everything down to C code to be used with the OpenGL API. That's what it uses for Desktop, I know that.
Offline BurntPizza

« JGO Bitwise Duke »

Medals: 486
Exp: 7 years

« Reply #4 - Posted 2014-04-29 01:06:40 »

Well, for the desktop platforms, it's still Java code running, but libGDX/LWJGL also makes calls to native code such as OpenGL and Box2D. See JNI and JNA for how that works.

The RoboVM business does compile the Java bytecode to native code as you can see at the bottom of their getting started page.

Web is covered by "translating" to JavaScript (GWT I believe, might be for Android, I forget) and WebGL instead of OpenGL. Asm.js is an example of that process.

Really if you just look up the names of the various technologies that libGDX mentions it uses, you'll find out how it works.
Pages: [1]
  ignore  |  Print  

hadezbladez (730 views)
2018-11-16 13:46:03

hadezbladez (369 views)
2018-11-16 13:41:33

hadezbladez (720 views)
2018-11-16 13:35:35

hadezbladez (184 views)
2018-11-16 13:32:03

EgonOlsen (2379 views)
2018-06-10 19:43:48

EgonOlsen (2533 views)
2018-06-10 19:43:44

EgonOlsen (1470 views)
2018-06-10 19:43:20

DesertCoockie (2135 views)
2018-05-13 18:23:11

nelsongames (1931 views)
2018-04-24 18:15:36

nelsongames (2614 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!