redo with new anti-GLucose
[SugarCubes.git] / UIImplementation.pde
similarity index 99%
rename from _UIImplementation.pde
rename to UIImplementation.pde
index ba0f110bc826a00aec85ce91e1b7ad52e9520c37..7750ab930c365a3322d635b6f82728483f0bca7c 100644 (file)
@@ -10,7 +10,7 @@
  *
  * Custom UI components using the framework.
  */
-
+import java.util.Arrays;
 class UICubesLayer extends UICameraComponent {
   void onDraw(UI ui) {
     color[] simulationColors = lx.getColors();
@@ -28,9 +28,7 @@ class UICubesLayer extends UICameraComponent {
     simulationNanos = System.nanoTime() - simulationStart;
     
     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;  
     strokeWeight(1);
   }