diff --git a/core/PApplet.java b/core/PApplet.java index c4a66a703..7cda6e1fe 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -5879,6 +5879,15 @@ public class PApplet extends Applet } + public void beginRaw(PGraphics recorderRaw) { + g.beginRaw(recorderRaw); + } + + + public void endRaw() { + g.endRaw(); + } + /* public void endRaw() { //if (!recorderRawNull) { @@ -7023,16 +7032,4 @@ public class PApplet extends Applet public final float brightness(int what) { return g.brightness(what); } - - - public void beginRaw(PGraphics recorderRaw) { - if (recorder != null) recorder.beginRaw(recorderRaw); - g.beginRaw(recorderRaw); - } - - - public void endRaw() { - if (recorder != null) recorder.endRaw(); - g.endRaw(); - } } diff --git a/core/PGraphics.java b/core/PGraphics.java index 07d03bf4c..dfef912d0 100644 --- a/core/PGraphics.java +++ b/core/PGraphics.java @@ -3543,15 +3543,17 @@ public class PGraphics extends PImage implements PConstants { } - public void beginRaw(PGraphics recorderRaw) { + public void beginRaw(PGraphics recorderRaw) { // ignore this.recorderRaw = recorderRaw; recorderRaw.beginFrame(); } - public void endRaw() { + public void endRaw() { // ignore if (recorderRaw != null) { - recorderRaw.endFrame(); + //System.out.println("legit end raw"); + //recorderRaw.endFrame(); + recorderRaw.endRaw(); recorderRaw = null; } } diff --git a/core/todo.txt b/core/todo.txt index 4bcd6f890..322fe83d6 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -4,6 +4,22 @@ X when graphics can be resized, resize rather than creating new context X change savePath() et al a great deal, include better docs X http://dev.processing.org/bugs/show_bug.cgi?id=199 +_ recordRaw is really confusing.. +_ when to use beginFrame/endFrame +_ is beginRaw/endRaw really needed? +_ seems to be a problem that it's an applet method +_ but then it's called on the g of the applet +_ but then it's the recorderRaw of that g that gets it called.. + +pdf stuff +_ don't open a window the size of the pdf if in pdf mode +_ need to have some sort of flag in the gfx context that it's visible or not +_ handled inside updateSize()? +_ how to flush when the sketch is done +_ inside dispose method? explicit close? +_ call exit() at end of pdf apps? exit calls dispose on gfx? +_ beginRecord() and endRecord() so that record doesn't stop after frame? + _ passing applet into createGraphics.. problems with re-adding listeners _ since the listeners are added to the PApplet diff --git a/pdf/PGraphicsPDF.java b/pdf/PGraphicsPDF.java index 1ae020823..3eb830579 100644 --- a/pdf/PGraphicsPDF.java +++ b/pdf/PGraphicsPDF.java @@ -256,6 +256,15 @@ public class PGraphicsPDF extends PGraphics2 { } + public void endRaw() { + System.out.println("ending raw"); + super.endRaw(); + System.out.println("disposing"); + dispose(); + System.out.println("done"); + } + + ////////////////////////////////////////////////////////////// diff --git a/todo.txt b/todo.txt index 565ec3c60..6050f2ed9 100644 --- a/todo.txt +++ b/todo.txt @@ -6,15 +6,8 @@ X switch to using date as default for archive sketch _ add this as a preference _ need method for showing prefs for the tools -pdf stuff -_ don't open a window the size of the pdf if in pdf mode -_ need to have some sort of flag in the gfx context that it's visible or not -_ handled inside updateSize()? -_ how to flush when the sketch is done -_ inside dispose method? explicit close? -_ call exit() at end of pdf apps? exit calls dispose on gfx? -_ beginRecord() and endRecord() so that record doesn't stop after frame? - +_ why was i allowed to save changes to the rgbcube example? +_ wasn't, just that the error didn't come through. yay osx! _ when a conflicting library is found, need to report it _ altho prolly only when it's actually different (md5hash it?)