Skip to content

Commit

Permalink
initial commit to github
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas committed Apr 21, 2011
1 parent acd1ceb commit e5df265
Show file tree
Hide file tree
Showing 7 changed files with 231 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
lib/*
target/*
73 changes: 73 additions & 0 deletions MyApp.scm
@@ -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)



6 changes: 6 additions & 0 deletions maven_installs.txt
@@ -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
92 changes: 92 additions & 0 deletions pom.xml
@@ -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>
7 changes: 7 additions & 0 deletions prokawa.sh
@@ -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 $@
13 changes: 13 additions & 0 deletions src/main/java/com/declarie/prokawa/App.java
@@ -0,0 +1,13 @@
package com.declarie.prokawa;

/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
38 changes: 38 additions & 0 deletions src/test/java/com/declarie/prokawa/AppTest.java
@@ -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 );
}
}

0 comments on commit e5df265

Please sign in to comment.