This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
# This code is a NEWT JogAmp JOGL 2 port of: | |
# https://sites.google.com/site/justinscsstuff/jogl-tutorial-3 | |
# | |
# Get the latest JogAmp JOGL 2 | |
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z | |
7z x jogamp-all-platforms.7z | |
cd jogamp-all-platforms | |
# Compile this demo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
# First install openjdk jre/jdk to get java running on the Pi | |
# For a complete list of openjdk package names options to use see: | |
# http://www.raspberrypi.org/phpBB3/viewtopic.php?f=81&t=27805 | |
sudo apt-get install openjdk-7-jre | |
# Download the gluegen-rt, joal and native armel/armhf libs for the Pi (~400kb) | |
wget http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar | |
wget http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt-natives-linux-armv6.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JNAJack - jjack using JNA! | |
# http://www.raspberrypi.org/phpBB3/viewtopic.php?p=187217#p187217 | |
# http://code.google.com/p/java-audio-utils/ | |
sudo apt-get install libjna-java jackd2 | |
wget http://java-audio-utils.googlecode.com/files/JNAJack%20build120912.zip | |
unzip JNAJack\ build120912.zip | |
cd JNAJack | |
# http://code.google.com/p/java-audio-utils/wiki/GettingStarted_JNAJack | |
# java -Xincgc -cp jna.jar:org-jaudiolibs-jnajack.jar org.jaudiolibs.jnajack.examples.SineAudioSource | |
java -jamvm -cp org-jaudiolibs-jnajack.jar:/usr/share/java/jna.jar org.jaudiolibs.jnajack.examples.SineAudioSource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested using xranby/libgdx.git master that includes the gdx-backend-jogl eclipse runnable jar deployment fix | |
git clone http://github.com/xranby/libgdx.git | |
# libgdx runnable jar deployment using gdx-backend-jogl | |
1. From inside Eclipse and choose file > Export... > Java > Runable JAR File | |
2. Select the libgdx game project in the dropdown menu | |
3. Change export destination and name the "main" jar i will assume you have choosen the name exportedname.jar . | |
4. Library handling: | |
select one of: | |
Package required libraries into generated JAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/demos/cuboc/cuboc/.classpath b/demos/cuboc/cuboc/.classpath | |
index 45b2d1c..e3b9615 100644 | |
--- a/demos/cuboc/cuboc/.classpath | |
+++ b/demos/cuboc/cuboc/.classpath | |
@@ -1,8 +1,8 @@ | |
-<?xml version="1.0" encoding="UTF-8"?> | |
-<classpath> | |
- <classpathentry kind="src" path="src"/> | |
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> | |
- <classpathentry combineaccessrules="false" kind="src" path="/gdx"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This gist will focus on how to setup and run the 3D Convex hull - Scala/Swing JOGL 2 project. | |
http://www.falcon.at-ninja.jp/sc05.html | |
# Debian/Ubuntu users can install scalac, scala and 7z using-apt-get: | |
sudo apt-get install scala p7zip-full | |
# Download and unpack the sc05 project source, jogamp jogl2 and scala-swing dependencies. | |
wget http://www.falcon.at-ninja.jp/src/sc05.zip | |
unzip sc05.zip | |
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the minimal configuration necessary to use the Tegra driver. | |
# Please refer to the xorg.conf man page for more configuration | |
# options provided by the X server, including display-related options | |
# provided by RandR 1.2 and higher. | |
# Disable extensions not useful on Tegra. | |
Section "Module" | |
Disable "dri" | |
Disable "dri2" | |
# Disable "glx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2012 JogAmp Community. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, are | |
* permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, this list of | |
* conditions and the following disclaimer. | |
* | |
* 2. Redistributions in binary form must reproduce the above copyright notice, this list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JOGL demos | |
wget http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos.jar | |
java -cp jogl-demos.jar:jar/jogl-all.jar:jar/gluegen-rt.jar | |
UTIL | |
wget http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos-util.jar | |
wget http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos-dualDepthPeeling.jar | |
wget http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos-data.jar | |
java -cp jogl-demos.jar:junit.jar:jogl-test.jar:jogl-all.jar:gluegen-rt.jar:jogl-demos-data.jar:jogl-demos-dualDepthPeeling.jar:jogl-demos-tennis.jar:jogl-demos-util.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z | |
7z x jogamp-all-platforms.7z | |
wget https://gist.github.com/xranby/42ffcd1d4298356dd177/raw/aca00bd10252496a3c772914ede5a54cad0ed2f7/TextRendering.java | |
javac -cp ./jogamp-all-platforms/jar/gluegen-rt.jar:./jogamp-all-platforms/jar/jogl-all.jar:. TextRendering.java | |
java -cp ./jogamp-all-platforms/jar/gluegen-rt.jar:./jogamp-all-platforms/jar/jogl-all.jar:. TextRendering |
OlderNewer