summaryrefslogtreecommitdiffstats
path: root/make/java-run-newt.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-15 07:24:20 +0200
committerSven Gothel <[email protected]>2010-04-15 07:24:20 +0200
commitbd4904fb04ab2168aeaf76e74385b3991429289a (patch)
treec21cc1e959caecbeaed109506acbfb8b853eeda2 /make/java-run-newt.sh
parent2ae28d54858ff684bc2368e0476a7a357dc63432 (diff)
JOGL (Windows):
- WindowsWGLDrawableFactory is using [singleton] shared dummy resources for - Drawable and Context which are utilized in case they are needed .. They are removed at shutdown call - GLCapabilities - Set pbuffer as the HW capabilities show, hence onscreen && pbuffer is valid - DefaultGLCapabilitiesChooser: Respect PBuffer selection (fixed) Only skip a config, if request is !onscreen && pbuffer, but pbuffer n/a Tests: - JUnit Passed (Windows32: Chromium - Except PBuffer (n/a)
Diffstat (limited to 'make/java-run-newt.sh')
-rwxr-xr-xmake/java-run-newt.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/make/java-run-newt.sh b/make/java-run-newt.sh
new file mode 100755
index 000000000..39654d03b
--- /dev/null
+++ b/make/java-run-newt.sh
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+function print_usage() {
+ echo "Usage: $0 jogl-build-dir ..."
+}
+
+if [ -z "$1" ] ; then
+ echo JOGL BUILD DIR missing
+ print_usage
+ return
+fi
+
+. ./setenv-jogl.sh $1
+shift
+
+MOSX=0
+uname -a | grep -i Darwin && MOSX=1
+
+if [ $MOSX -eq 1 ] ; then
+ X_ARGS="-XstartOnFirstThread"
+fi
+
+java $X_ARGS -Djava.awt.headless=true com.jogamp.newt.util.MainThread $* 2>&1 | tee java-run-newt.log