mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
pdf mostly working, need to work out the kinks tomorrow
This commit is contained in:
+9
-12
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
+5
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
@@ -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?)
|
||||
|
||||
Reference in New Issue
Block a user