blob: 68a0685694cdce9781d873f9553ff9f791c0e325 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#! /bin/sh
MOSX=0
uname -a | grep -i Darwin && MOSX=1
CPOK=0
echo $CLASSPATH | grep jogl && CPOK=1
if [ $CPOK -eq 0 ] ; then
# Only valid for autobuild .. otherwise run manually with build-dir
. ./setenv-jogl.sh JOGL_ALL
echo $CLASSPATH | grep jogl && CPOK=1
fi
if [ $CPOK -eq 0 ] ; then
echo No JOGL in CLASSPATH
else
# D_ARGS="-Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all"
D_ARGS="-Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all -Djogl.debug.GLSLState"
#D_ARGS="-Dnativewindow.debug.X11Util=true -Djogl.debug.GLDrawableFactory=true"
#D_ARGS="-Dnativewindow.debug.X11Util=true"
if [ $MOSX -eq 1 ] ; then
X_ARGS="-XstartOnFirstThread"
fi
java $X_ARGS -Djava.awt.headless=true $D_ARGS com.jogamp.newt.util.MainThread $* 2>&1 | tee java-dbg-newt.log
fi
|