aboutsummaryrefslogtreecommitdiffstats
path: root/demos/change2GL4JavaV2.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
committerSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
commit880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch)
treebdafb71416f176d2a4b73bf716c9dc3f13685a8b /demos/change2GL4JavaV2.sh
Initial revision
Diffstat (limited to 'demos/change2GL4JavaV2.sh')
-rwxr-xr-xdemos/change2GL4JavaV2.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/demos/change2GL4JavaV2.sh b/demos/change2GL4JavaV2.sh
new file mode 100755
index 0000000..7998edb
--- /dev/null
+++ b/demos/change2GL4JavaV2.sh
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+if [ -z $1 -a -z $2 ] ; then
+ echo usage: $0 input-file output-file
+ exit 0
+fi
+sed -e 's/gljGetFpsCounter/cvsGetFpsCounter/g' \
+ -e 's/gljResetFpsCounter/cvsResetFpsCounter/g' \
+ -e 's/gljGetWidth/cvsGetWidth/g' \
+ -e 's/gljGetHeight/cvsGetHeight/g' \
+ -e 's/gljDispose/cvsDispose/g' \
+ -e 's/gljUse()/gljMakeCurrent(true)/g' \
+ -e 's/glj/glj.glj/g' \
+ -e 's/gl[^a-z]/gl.&\1/g' \
+ -e 's/glut/glut.&\1/g' \
+ -e 's/glu/glu.&\1/g' \
+ -e 's/GLCanvasV2.gl.glClassDebug/GLContext.gljClassDebug/g' \
+ -e 's/GLCanvasV2.gl.glNativeDebug/GLContext.gljNativeDebug/g' \
+ -e 's/gl.glClassDebug/GLContext.gljClassDebug/g' \
+ -e 's/gl.glNativeDebug/GLContext.gljNativeDebug/g' \
+ -e 's/import GL4Java/import gl4java.awt/g' \
+ -e 's/GL4Java/gl4java/g' \
+ $1 > $2