Re: Common code base between Desktop and Mobile
Posted by
gouessej on
Sep 16, 2014; 5:37pm
URL: https://forum.jogamp.org/Common-code-base-between-Desktop-and-Mobile-tp4033153p4033154.html
Hi
Nice schema :)
You can use different code paths depending on tests (isGL2ES2(), ...). If your code uses only methods in GL2ES2, it will work on almost all modern devices. Some drivers provide ES support in desktop environments, I can confirm it works really good under GNU Linux, this is what I do to test my code with OpenGL ES.
If you use only VBOs and VAOs with shaders, most of your code should work with OpenGL 2 and OpenGL ES 2.
I remind you that LibGDX has a JOGL backend and supports iOS.