aboutsummaryrefslogtreecommitdiffstats
path: root/make/lsGL2toGL3_commons.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/lsGL2toGL3_commons.sh')
-rw-r--r--make/lsGL2toGL3_commons.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/make/lsGL2toGL3_commons.sh b/make/lsGL2toGL3_commons.sh
new file mode 100644
index 000000000..cccfa734c
--- /dev/null
+++ b/make/lsGL2toGL3_commons.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+BUILDDIR=$1
+shift
+if [ -z "$BUILDDIR" ] ; then
+ echo "usage $0 <BUILDDIR>"
+ exit 1
+fi
+
+idir=$BUILDDIR/jogl/gensrc/classes/javax/media/opengl
+
+echo GL2 to GL3 enums
+sort $idir/GL2.java $idir/GL3.java $idir/GL2ES2.java | uniq -d | grep GL_ | awk ' { print $5 } '
+
+echo GL2 to GL3 functions
+sort $idir/GL2.java $idir/GL3.java $idir/GL2ES2.java | uniq -d | grep "public [a-z0-9_]* gl"