messy first pass at processing2 port
[SugarCubes.git] / Internals.pde
similarity index 99%
rename from _Internals.pde
rename to Internals.pde
index 425ea0e3c8a34532ef54f39f10bca368be15ba28..a1b8baf03f6ea1ca1cfda7833ec6021098b6c22b 100644 (file)
@@ -27,6 +27,7 @@ import ddf.minim.analysis.*;
 import processing.opengl.*;
 import rwmidi.*;
 import java.lang.reflect.*;
+import javax.media.opengl.*;
 
 final int VIEWPORT_WIDTH = 900;
 final int VIEWPORT_HEIGHT = 700;
@@ -479,11 +480,14 @@ void drawBox(float x, float y, float z, float rx, float ry, float rz, float xd,
   popMatrix();
 }
 
+
+
 void drawUI() {
   camera();
-  javax.media.opengl.GL gl = ((PGraphicsOpenGL)g).beginGL();
-  gl.glClear(javax.media.opengl.GL.GL_DEPTH_BUFFER_BIT);
-  ((PGraphicsOpenGL)g).endGL();
+  PGraphicsOpenGL gl = (PGraphicsOpenGL) g;  
+
+  //gl.glClear(javax.media.opengl.GL.GL_DEPTH_BUFFER_BIT);
+  //((PGraphicsOpenGL)g).endGL();
   strokeWeight(1);
 
   if (uiOn) {