Permalink
Browse files

Add driver for testing without building

  • Loading branch information...
1 parent d857ec3 commit 403fb485380015e26676f39e90dc08fe2902f283 @jdf committed Jul 27, 2010
Showing with 31 additions and 0 deletions.
  1. +1 −0 .classpath
  2. +30 −0 test/peasy/test/TestPeasy.java
View
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Java 5"/>
<classpathentry combineaccessrules="false" kind="src" path="/processing-core"/>
<classpathentry kind="output" path="bin"/>
@@ -0,0 +1,30 @@
+package peasy.test;
+
+import peasy.PeasyCam;
+import processing.core.PApplet;
+
+@SuppressWarnings("serial")
+public class TestPeasy extends PApplet {
+
+ PeasyCam cam;
+
+ public void setup() {
+ size(200, 200, P3D);
+ cam = new PeasyCam(this, 100);
+ cam.setMinimumDistance(50);
+ cam.setMaximumDistance(500);
+ }
+
+ public void draw() {
+ rotateX(-.5f);
+ rotateY(-.5f);
+ background(0);
+ fill(255, 0, 0);
+ box(30);
+ pushMatrix();
+ translate(0, 0, 20);
+ fill(0, 0, 255);
+ box(5);
+ popMatrix();
+ }
+}

0 comments on commit 403fb48

Please sign in to comment.