Login  Register

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

Posted by gouessej on Jun 10, 2015; 2:34pm
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4034643.html

You should modify this method:
https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/graphics/g2d/SpriteBatch.java#L127

Edit.: We should use #ifdef GL_ES_VERSION_3_0 or GL_ES_VERSION_2_0 to use the correct modifiers.

Edit.: We should use #version 100 with OpenGL ES 2.0, #version 110 with OpenGL 2.0, #version 120 with OpenGL 2.1 and so on:
https://en.wikipedia.org/wiki/OpenGL_Shading_Language#Versions
Julien Gouesse | Personal blog | Website