Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LWJGL port to android

Is there a LWJGL port for Android available? (does not matter if the phone needs to rooted)

like image 285
Deniz Zoeteman Avatar asked Jan 03 '11 15:01

Deniz Zoeteman


3 Answers

Things have happened since this question was answered in 2011.

There is a port It is new that LWJGL has support for Android.

The linked repo has the setup instructions and the demo, the actual code is in the LWJGL3 repo under the Android branch.

I've been using it for a while now, and this library has a bunch of useful features that aren't just connected to OpenGLES, OpenAL, OpenVR and Vulkan, but it also has a lot of utilities for things like 3D model loading, layouts, dialogs, fonts and a lot more. Meaning the Android port of LWJGL is a considerable add-on to the current OpenGL ES support.

As for other libraries though, you can use no libraries because of the native support. Alternatively, you can use LibGDX or jMonkeyEngine, those are the only two others I know of and have used. Note that these are frameworks and not libraries like LWJGL, meaning they set up a given system you have to follow (one of the reasons I dislike them). It's harder implementing custom features without having to bring out a lot of other parts of the framework that aren't that well documented.

like image 86
Zoe stands with Ukraine Avatar answered Oct 14 '22 20:10

Zoe stands with Ukraine


One of LWJGL's main features is its OpenGL support. Android natively supports OpenGL ES so there's basically no need for LWJGL. As for the rest of LWJGL, it doesn't apply on the Android platform anyway - for example there is obviously no mouse to an Android device - so I don't see a direct LWJGL port ever being developed.

Check out the Android reference, especially the android.opengl package, for a good starting point.

like image 25
Ricket Avatar answered Oct 14 '22 21:10

Ricket


A good 3D and 2D engine that uses LWJGL and works well for Android development (and also Desktop and Web Apps) is libGDX.

like image 41
William Reed Avatar answered Oct 14 '22 22:10

William Reed