Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
thomas
committed
Apr 21, 2011
1 parent
acd1ceb
commit e5df265
Showing
7 changed files
with
231 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lib/* | ||
target/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
(define-simple-class MyApp (processing.core.PApplet) | ||
|
||
((setup) | ||
(size screenWidth screenHeight codeanticode.glgraphics.GLConstants:GLGRAPHICS) | ||
(background 255) | ||
(ellipseMode CENTER) | ||
(smooth) | ||
) | ||
((draw) | ||
(yellowline) | ||
(cyanline) | ||
(magentaline) | ||
(blackline) | ||
) | ||
((yellowline) | ||
(pushMatrix) | ||
(translate (random width) 0) | ||
(strokeWeight (random 20)) | ||
(stroke (- 255 (random 20)) (- 255 (random 20)) (- 255 (random 255))) | ||
(noFill) | ||
(line 0 0 0 height) | ||
(popMatrix) | ||
) | ||
((cyanline) | ||
(pushMatrix) | ||
(translate (random width) 0) | ||
(strokeWeight (random 20)) | ||
(stroke (- 255 (random 255)) (- 255 (random 20)) (- 255 (random 20))) | ||
(noFill) | ||
(line 0 0 0 height) | ||
(popMatrix) | ||
) | ||
((magentaline) | ||
(pushMatrix) | ||
(translate (random width) 0) | ||
(strokeWeight (random 20)) | ||
(stroke (- 255 (random 20)) (- 255 (random 255)) (- 255 (random 20))) | ||
(noFill) | ||
(line 0 0 0 height) | ||
(popMatrix) | ||
) | ||
((blackline) | ||
(pushMatrix) | ||
(translate (random width) 0) | ||
(strokeWeight 200) | ||
(stroke (- 255 (random 255))) | ||
(noFill) | ||
(line 0 0 0 height) | ||
(popMatrix) | ||
) | ||
((keyPressed) | ||
(background 255) | ||
) | ||
|
||
) | ||
|
||
(define-simple-class NewClass () | ||
((draw) | ||
(background 0) | ||
) | ||
) | ||
|
||
;(processing.core.PApplet:main (make String[] "--present" "MyApp")) | ||
|
||
(define p (MyApp)) | ||
(MyApp:runSketch (make String[] "--present" "MyApp") p) | ||
(define g (*:.g p)) | ||
|
||
;(define nn (NewClass)) | ||
;(p:registerDraw nn) | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mvn install:install-file -DgroupId=org.processing -DartifactId=processing-core -Dversion=1.5 -Dpackaging=jar -Dfile=core.jar | ||
mvn install:install-file -DgroupId=org.gnu -DartifactId=kawa -Dversion=1.11 -Dpackaging=jar -Dfile=kawa-1.11.jar | ||
mvn install:install-file -DgroupId=net.sourceforge -DartifactId=GLGraphics -Dversion=20110411 -Dpackaging=jar -Dfile=GLGraphics.jar | ||
mvn install:install-file -DgroupId=org.processing -DartifactId=opengl -Dversion=1.5 -Dpackaging=jar -Dfile=opengl.jar | ||
vn install:install-file -DgroupId=org.processing -DartifactId=jogl -Dversion=1.5 -Dpackaging=jar -Dfile=jogl.jar | ||
mvn install:install-file -DgroupId=org.processing -DartifactId=gluegen-rt -Dversion=1.5 -Dpackaging=jar -Dfile=gluegen-rt.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.declarie.prokawa</groupId> | ||
<artifactId>prokawa</artifactId> | ||
<packaging>jar</packaging> | ||
<version>1.0-SNAPSHOT</version> | ||
<name>prokawa</name> | ||
<url>http://maven.apache.org</url> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>3.8.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.gnu</groupId> | ||
<artifactId>kawa</artifactId> | ||
<version>1.11</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.processing</groupId> | ||
<artifactId>processing-core</artifactId> | ||
<version>1.5</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.sourceforge</groupId> | ||
<artifactId>GLGraphics</artifactId> | ||
<version>20110411</version> | ||
</dependency> | ||
<!-- Start OPENGL --> | ||
<dependency> | ||
<groupId>org.processing</groupId> | ||
<artifactId>opengl</artifactId> | ||
<version>1.5</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.processing</groupId> | ||
<artifactId>gluegen-rt</artifactId> | ||
<version>1.5</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.processing</groupId> | ||
<artifactId>jogl</artifactId> | ||
<version>1.5</version> | ||
</dependency> | ||
<!-- END OPENGL --> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<configuration> | ||
<descriptorRefs> | ||
<descriptorRef>jar-with-dependencies</descriptorRef> | ||
</descriptorRefs> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>2.2</version> | ||
<!-- nothing here --> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>2.2-beta-4</version> | ||
<configuration> | ||
<descriptorRefs> | ||
<descriptorRef>jar-with-dependencies</descriptorRef> | ||
</descriptorRefs> | ||
<archive> | ||
<manifest> | ||
<mainClass>com.declarie.prokawa</mainClass> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
export J=java | ||
export CLASSPATH=./target/prokawa-1.0-SNAPSHOT-jar-with-dependencies.jar | ||
export LIBPATH=/home/thomas/processing-1.5/modes/java/libraries/opengl/library/linux32/ | ||
|
||
$J -cp $CLASSPATH -Djava.library.path=$LIBPATH kawa.repl $@ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.declarie.prokawa; | ||
|
||
/** | ||
* Hello world! | ||
* | ||
*/ | ||
public class App | ||
{ | ||
public static void main( String[] args ) | ||
{ | ||
System.out.println( "Hello World!" ); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.declarie.prokawa; | ||
|
||
import junit.framework.Test; | ||
import junit.framework.TestCase; | ||
import junit.framework.TestSuite; | ||
|
||
/** | ||
* Unit test for simple App. | ||
*/ | ||
public class AppTest | ||
extends TestCase | ||
{ | ||
/** | ||
* Create the test case | ||
* | ||
* @param testName name of the test case | ||
*/ | ||
public AppTest( String testName ) | ||
{ | ||
super( testName ); | ||
} | ||
|
||
/** | ||
* @return the suite of tests being tested | ||
*/ | ||
public static Test suite() | ||
{ | ||
return new TestSuite( AppTest.class ); | ||
} | ||
|
||
/** | ||
* Rigourous Test :-) | ||
*/ | ||
public void testApp() | ||
{ | ||
assertTrue( true ); | ||
} | ||
} |