repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
redo with new anti-GLucose
[SugarCubes.git]
/
UIImplementation.pde
diff --git
a/_UIImplementation.pde
b/UIImplementation.pde
similarity index 99%
rename from
_UIImplementation.pde
rename to
UIImplementation.pde
index ba0f110bc826a00aec85ce91e1b7ad52e9520c37..7750ab930c365a3322d635b6f82728483f0bca7c 100644
(file)
--- a/
_UIImplementation.pde
+++ b/
UIImplementation.pde
@@
-10,7
+10,7
@@
*
* Custom UI components using the framework.
*/
*
* Custom UI components using the framework.
*/
-
+import java.util.Arrays;
class UICubesLayer extends UICameraComponent {
void onDraw(UI ui) {
color[] simulationColors = lx.getColors();
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();
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);
}
strokeWeight(1);
}