aboutsummaryrefslogtreecommitdiffstats
path: root/demos/change2GL4JavaV2.sh
blob: 7998edb22f81aa99c12339b491793e41018e9cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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