Login  Register

Re: LWUIT NEWT JOGL Enlightenment Wayland - Tizen Phone

Posted by zubzub on Sep 24, 2015; 11:42am
URL: https://forum.jogamp.org/LWUIT-NEWT-JOGL-Enlightenment-Wayland-Tizen-Phone-tp4035335p4035377.html

Hi Peter,

What you need to do is initialize the whole wayland EGL stack. That is: get an egl display, context, surface handle & others(?). If you want to do that you will need to call some EGL specific functions too. I believe those are available in jogl. Google can show you how to do EGL initialization on wayland or have a look at this: http://cgit.freedesktop.org/wayland/weston/tree/clients/simple-egl.c

Once you have done that, you need to initialize jogl with those handles. I'm not familiar exactly how you can do that, but I do believe it is possible (something with external context. Maybe goussej can provide some input how to initialize jogl without newt?). Another thing is user input. The wayland java bindings will be able to give you input but it's pretty rudimentary (you will need xkbcommon if you want to properly use keyboard input, however on a phone I imagine touch is enough...).

This approach however does not use newt as newt has no idea how to either initialize the wayland egl stack (yet) nor how to handle wayland input events (yet).