0
\$\begingroup\$

How do I compile a lwjgl program written in java with openGL and glfw to run on android. I Should use openGL es for android..But how to create context for gles and input for touch screen.

Update:

In general how do I port openGL game written in java to android

\$\endgroup\$
1
\$\begingroup\$

You can't use LWJGL on android because it uses normal OpenGL, while android only supports OpenGL ES. You need to rewrite your app with the one given by the android SDK.

Although there is a support for normal GLES, you can't get inputs like touches, swipes, sensors, erc.

\$\endgroup\$
7
  • \$\begingroup\$ But lwjgl comes with openGL es binding... \$\endgroup\$ – Yashwanth CB Nov 21 '16 at 8:51
  • 1
    \$\begingroup\$ @yashwanth see edit \$\endgroup\$ – Bálint Nov 21 '16 at 9:08
  • \$\begingroup\$ Whether programming for desktop with Gles is a good idea or not? \$\endgroup\$ – Yashwanth CB Nov 21 '16 at 9:14
  • 1
    \$\begingroup\$ @yash Why would you use GLES if you can use the normal one? \$\endgroup\$ – Bálint Nov 21 '16 at 10:50
  • 1
    \$\begingroup\$ @yash I don't think you can connect it with a glSurfaceView. \$\endgroup\$ – Bálint Nov 21 '16 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.