Login  Register

Re: JOGL 2.0 (OpenGL/OpenGL-ES) backend for LibGDX

Posted by gouessej on Jan 16, 2013; 12:21pm
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4027865.html

noxo wrote
gouessej wrote
The renderer based on the programmable pipeline should work on ES2 as it uses methods in GL2ES2 except glAlphaMask. Why not trying to use this renderer instead of starting from the one for Android (that uses AndroidGL)?
Yeah, one renderer, which just forks correctly on GLES capabilities/version would be much better solution. I did just blindly gone into copying of Android implemention, without checking current JOGL renderer.. looks like it wouldn't require that much effort to work on GLES too..

Pushed this two renderer hack into https://github.com/noxo/jmonkey-engine-jogl-gles .. but like you said eventually it's probably wrong way to go :)
I have no Raspberry Pi, I can't test. However, GL2GL3 extends GL2ES2, the only problem comes from the method in GL2 (glAlphaMask). You can skip this call is the current GL isn't compatible with isGL2ES2(), use getDefault() instead of getMaxFixedFunc(true), add the JARs containing the native libraries for ARM if they aren't already provided and it should work.
Julien Gouesse | Personal blog | Website