Hello Guest

lwjgl 3 - Android supports?

  • 2 Replies
lwjgl 3 - Android supports?
« on: March 17, 2018, 21:12:10 »
Who knows Is LWJGL 3 support android platform ?
I saw branch "Android" on https://github.com/LWJGL/lwjgl3
I suppose it support Android, but i didn't find how to create project and what a difference between desktop version on documentations nothing.
Is that make sense to use LWJGL 3  for android opengl ?


Offline KaiHH

  • ***
  • 167
Re: lwjgl 3 - Android supports?
« Reply #1 on: March 17, 2018, 21:48:19 »
While there has been some effort in the last year getting LWJGL3 to build and run on Android devices, there is no real reason why you would want to do that in the first place.
Android has native/built-in support for OpenGL ES at the API/language level itself already. There is no need for additional Java/OpenGL bindings that LWJGL provides on top of that, which is only necessary on Desktop/PC.
So, there is no reason to use an additional Java/OpenGL binding library like LWJGL when the platform already supports this natively.
You could not even use GLFW for windowing/input/context management, since you have to use Android's APIs for that.
And "porting" LWJGL-like OpenGL calls to Android-like OpenGL ES calls should be really easy since both Android and LWJGL have very similar design principles, such as using static methods and having equal OpenGL method names/suffixes.

For a tutorial on using OpenGL ES on Android, see: https://developer.android.com/training/graphics/opengl/index.html

Re: lwjgl 3 - Android supports?
« Reply #2 on: March 18, 2018, 12:46:22 »
Thanks you a lot for detailed answer  :)