diff --git a/processing/app/PdeRuntime.java b/processing/app/PdeRuntime.java index 16edd8c57..4cb0e54e9 100644 --- a/processing/app/PdeRuntime.java +++ b/processing/app/PdeRuntime.java @@ -123,6 +123,8 @@ public class PdeRuntime implements PdeMessageConsumer { processInput = new SystemOutSiphon(process.getInputStream()); processError = new PdeMessageSiphon(process.getErrorStream(), this); processOutput = process.getOutputStream(); + //processOutput.write(' '); + //processOutput.flush(); } else { // !externalRuntime //Class c = Class.forName(className); @@ -331,15 +333,18 @@ public class PdeRuntime implements PdeMessageConsumer { //System.out.println("killing external process"); try { - //System.out.println("writing to stop process"); + System.out.println("writing to stop process"); processOutput.write('s'); + System.out.println("written"); processOutput.flush(); + System.out.println("flushing"); } catch (IOException e) { //System.err.println("error stopping external applet"); //e.printStackTrace(); close(); } + System.out.println("out"); } } diff --git a/processing/core/PApplet.java b/processing/core/PApplet.java index 243a3f182..b3171ac3d 100644 --- a/processing/core/PApplet.java +++ b/processing/core/PApplet.java @@ -3938,15 +3938,21 @@ public class PApplet extends Applet Thread ethread = new Thread() { //new Runnable() { public void run() { + setPriority(Thread.MIN_PRIORITY); while ((Thread.currentThread() == this) && !finished) { try { // is this what's causing all the trouble? int anything = System.in.read(); if (anything == EXTERNAL_STOP) { + //System.out.println("********** STOPPING"); + + // adding this for 0073.. need to stop libraries + // when the stop button is hit. + PApplet.this.stop(); + + //System.out.println("********** REALLY"); finished = true; - //stop(); - //thread = null; // kill self } } catch (IOException e) { // not tested (needed?) but seems correct diff --git a/processing/core/todo.txt b/processing/core/todo.txt index 9b9592d9b..b9fb75077 100644 --- a/processing/core/todo.txt +++ b/processing/core/todo.txt @@ -11,28 +11,40 @@ X add TRIANGLE_FAN X eyeX, eyeY etc have been renamed cameraX/Y/Z, and cameraNear/Far X modify targa and tiff writing routines to break into header writing X writeTIFF, writeHeaderTIFF, writeTGA, writeHeaderTGA +X use TEXT_ANTIALIAS instead of ANTIALIAS on font editor +opengl +_ why is the thing hanging until 'stop' is hit? +_ what happens when stop is hit that sets it free? +_ (at what point does it start working properly?) +_ debug why certain spots are having errors (see 'problem here' notes) +_ resolve ARGB versus RGBA versus just A issues for fonts +_ make sure that current scenario works identically on mac +_ if so, just switch the image code to expect alpha in the high bits +_ fonts probably need to be RGBA, not ALPHA style images +_ there's nothing really ALPHA about them? _ remove need to use depth() at the beginning _ and cameraMode(PERSPECTIVE) on each frame +_ why is the first one failing? _ reverse y coordinates _ minimum texture size may be 64x64 +_ might need to enforce it as a minimum +X cache needs to also make things a power of 2 +X if images are already a power of 2, then needn't re-alloc +X cacheIndex needs to be set to -1 when the image is modified +X or maybe have a modified() function? _ implement size(0, 0) -> just doesn't bother doing a frame.show(); _ implement fullscreen().. this takes over the screen as best it can _ really more like present mode.. _ that if applet is 500x500, centers on a 800x600 window -opengl -_ cache needs to also make things a power of 2 -_ if images are already a power of 2, then needn't re-alloc -_ warn people that they should make images be a pow of 2 -_ cacheIndex needs to be set to -1 when the image is modified -_ or maybe have a modified() function? +opengl documentation _ lights cannot be enabled/disabled throughout _ lighting will be based on what's left at endFrame() +_ images should be a power of 2, or call modified() + -_ fonts probably need to be RGBA, not ALPHA style images -_ there's nothing really ALPHA about them? _ also when drawing an image, sense whether drawn rotated _ if just rotate/translate, then can use SCREEN_SPACE for fonts _ bring screen space and font size settings back in to PGraphics