My slight modification of JOGL.

Hi bad news is here. My modification of JOGL is being revamped with new version of JOGL.
Translated there is a some extension of JOGL. JOGL/LWJGL confusion would increase with a third programming alternative. And so on…

Obviously I would be more happy if this extension would be accepted as a common Java GL interface and JOGL merged with LWJGL It seems to be a long way until this would happen.

In my honest opinion, the best features of JOGL are possiblity to rename gl object how your mood desire, and it looks like you are using an object called gl. Also debugging and crashes are somehow more easily survivable, or I had less luck with LWJGL.
The best features of LWJGL are, it’s small download. And it’s doing more (nasty) genuinly looking fullscreen window.

Actually it started after I was looking on some discusion about a naming convention of OpenGL. Participants were very happy to talk, but they didn’t programmed any test or try to change JOGL/LWJGL to be more reasonable. So I decided I’d change a JOGL so I could see how it would work. Nothing against cas’s library, but he said something it’s a work for 5 minutes to refactor it into reasonable shape, so it was pointless to do something he could do much easier himself. It took me around 5 hours for JOGL.
Well I did it a half year ago, or year ago. Now I looked at some previous code, and berk, I returned to my code. My modification was much more cleaner and confortable than original JOGL.
Some example.


gl.begin(GL.TRIANGLES);
    for(int c = 0; c < vertices.lenght; c +=9){
    gl.vertex(vertices[c], vertices[c + 1], vertices[c + 2]);
    gl.vertex(vertices[c + 3], vertices[c + 4], vertices[c + 5]); 
    gl.vertex(vertices[c+6], vertices[c + 7], vertices[c + 8]);
}
gl.end();

It could be used also this way
TWW.begin(TWW.vertex("shader 1"));
gl.begin(GL.TRIANGLES)
gl.end()
TWW.end(errorOutput);

It merges together rather nicely. Right?

Actually after a experience with both alternatives I think gl.vertex3f could be survaivable as well, but current interfaces for JOGL/LWJGL are harmful.

BTW why there isn’t a GL.java distributed in the sources of JOGL? GLExt.h is nasty reading.

And one more thing.
I was probably stupid to do such work for experimental library, but it works with applications that expect original JOGL, at a terrible price 300 kB more to download.