Login  Register

Re: Cross platform GLSL (ES)?

Posted by io7m on Dec 14, 2013; 12:13am
URL: https://forum.jogamp.org/Cross-platform-GLSL-ES-tp4030871p4030893.html

I'm not sure this really answered the original question, which was "How can I use my x86-64 computer with intel integrated graphics to develop cross platform java opengl?".

The actual answer is, assuming you're on a system that does support ES2/3 (which if you're on Linux on Intel
is a definite yes - everything newer than about 2008 can do ES2 with a reasonably recent version of Mesa, and
everything on Sandy Bridge and newer can do ES3):

1. Ask JOGL for a GLES2 (or GLES3) context, using a GLES2/GLES3 GLProfile.
2. Supply GLSL ES 1.0/3.0 shaders.
3. Try desperately to stick to the GL ES2/ES3 spec!

You'll find that ES2 is pretty crippled compared to ordinary desktop OpenGL, and it's incompatible in numerous
small ways. ES3 is much better, but I've no idea how much support it has on mobile platforms yet. It didn't come
out all that long ago.