aboutsummaryrefslogtreecommitdiffstats
path: root/tools/jackpotc/jogl1Tojogl2.hint
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-04-22 00:28:41 +0200
committerMichael Bien <[email protected]>2010-04-22 00:28:41 +0200
commit8db5ff430a08ec18bfd947d7aee1c6d298d0d662 (patch)
tree685577ee4d6250eb76a2c78e72a78cf94b2c505f /tools/jackpotc/jogl1Tojogl2.hint
parent2cb8c65600a1c8cd1b3ea1386b5f1359390f1ccd (diff)
added jackpot 3.0 code transformator to tools/jackpotc.
- use 'setup' for initial setup (downloads jackpot). - use 'bttf' for running a jogl1.1.1 -> jogl 2 (reloaded) transformation - tools/jackpotc/test/oldgears is a jogl 1.1.1 NetBeans project - more information about jackpot is in tools/jackpotc/lib/README after setup was run
Diffstat (limited to 'tools/jackpotc/jogl1Tojogl2.hint')
-rw-r--r--tools/jackpotc/jogl1Tojogl2.hint22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/jackpotc/jogl1Tojogl2.hint b/tools/jackpotc/jogl1Tojogl2.hint
new file mode 100644
index 000000000..9352c959e
--- /dev/null
+++ b/tools/jackpotc/jogl1Tojogl2.hint
@@ -0,0 +1,22 @@
+// rules for automatic jogl 1.1.1 -> jogl 2 refactorings
+
+//'JOGL2 API change: javax.media.opengl.GLCanvas -> javax.media.opengl.awt.GLCanvas':
+//javax.media.opengl.GLCanvas=>javax.media.opengl.awt.GLCanvas;;
+
+//'JOGL2 API change: javax.media.opengl.GLJPanel -> javax.media.opengl.awt.GLJPanel':
+//javax.media.opengl.GLJPanel=>javax.media.opengl.awt.GLJPanel;;
+
+'JOGL2 API change: javax.media.opengl.GL -> javax.media.opengl.GL2':
+javax.media.opengl.GL=>javax.media.opengl.GL2;;
+
+'JOGL2 API change: new javax.media.opengl.GLCapabilities(javax.media.opengl.GLProfile)':
+new javax.media.opengl.GLCapabilities()=>
+new javax.media.opengl.GLCapabilities(javax.media.opengl.GLProfile.get(javax.media.opengl.GLProfile.GL2));;
+
+'JOGL2 API change: GL gl = drawable.getGL() -> GL2 gl = drawable.getGL().getGL2()':
+$d.getGL() :: $d instanceof javax.media.opengl.GLAutoDrawable=>
+$d.getGL().getGL2();;
+
+//public void init($D $drawable)=>
+//public void dispose(GLAutoDrawable drawable){}
+//public void init($D $drawable);;