|
I would like to request that JOGL 1.1.1 code would simply work with JOGL 2.x jars without modification (or at least with minimal changes).
I can see how you want the compiler to flag code that doesnt match a particular profile, but there should be a better transparent process without refactoring an entire code base, especially since I dont have privileges to modify someone else's code. For example, NASA World Wind, which posts source code as a zip file on a daily basis, and does not have a public source control repository. These changes would greatly ease transitioning/experimenting with JOGL 2 on an existing JOGL 1 app.
JOGL 2 should choose JOGL 1 options as defaults unless they are specified otherwise. Specifically:
* Default profile is GL2 desktop. When calling no-args constructor for GLJPanel(), it calls GLCapabilities() with GL2 Profile.
* GL interface should be synonymous with GL2. If you need something to a differentiate, add a GL1 interface or something similar.
* GLAutoDrawable.getGL() returns a GL2 equivalent so JOGL 1 code just works.
* All constants that were exposed in JOGL 1 GL interface are still available in JOGL 2 GL interface. This avoids searching for GL.GL_ and replacing with GL2.GL_
|