mirror of
https://github.com/processing/processing4.git
synced 2026-06-08 16:40:46 +02:00
edits to look into background not set bug and formatting issues
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
<key>JVMVersion</key>
|
||||
<string>1.4*</string>
|
||||
<key>ClassPath</key>
|
||||
<!-- <string>$JAVAROOT/pde.jar:lib/core.jar:$JAVAROOT/antlr.jar:$JAVAROOT/log4j.jar:$JAVAROOT/jalopy.jar:$JAVAROOT/oro.jar:$JAVAROOT/registry.jar:$JAVAROOT/quaqua.jar:/System/Library/Java</string>-->
|
||||
<string>$JAVAROOT/pde.jar:lib/core.jar:$JAVAROOT/antlr.jar:$JAVAROOT/oro.jar:$JAVAROOT/registry.jar:$JAVAROOT/quaqua.jar:/System/Library/Java</string>
|
||||
|
||||
<!-- http://developer.apple.com/releasenotes/Java/java141/system_properties/chapter_4_section_1.html#//apple_ref/doc/uid/TP30000285 -->
|
||||
|
||||
@@ -117,8 +117,9 @@ echo Building the PDE...
|
||||
# compile the code as java 1.3, so that the application will run and
|
||||
# show the user an error, rather than crapping out with some strange
|
||||
# "class not found" crap
|
||||
#../build/macosx/work/jikes -target 1.3 +D -classpath ../build/macosx/work/classes:../build/macosx/work/lib/core.jar:../build/macosx/work/lib/antlr.jar:../build/macosx/work/lib/oro.jar:../build/macosx/work/lib/registry.jar:$CLASSPATH -d ../build/macosx/work/classes *.java syntax/*.java preproc/*.java tools/*.java
|
||||
../build/macosx/work/jikes -target 1.3 +D -classpath ../build/macosx/work/classes:../build/macosx/work/lib/core.jar:../build/macosx/work/lib/antlr.jar:../build/macosx/work/lib/oro.jar:../build/macosx/work/lib/registry.jar:$CLASSPATH -d ../build/macosx/work/classes tools/*.java preproc/*.java syntax/*.java *.java
|
||||
../build/macosx/work/jikes -target 1.3 +D -classpath ../build/macosx/work/classes:../build/macosx/work/lib/core.jar:../build/macosx/work/lib/antlr.jar:../build/macosx/work/lib/oro.jar:../build/macosx/work/lib/registry.jar:$CLASSPATH -d ../build/macosx/work/classes *.java syntax/*.java preproc/*.java tools/*.java
|
||||
# version that follows includes jalopy.jar and log4j.jar
|
||||
#../build/macosx/work/jikes -target 1.3 +D -classpath ../build/macosx/work/classes:../build/macosx/work/lib/core.jar:../build/macosx/work/lib/antlr.jar:../build/macosx/work/lib/oro.jar:../build/macosx/work/lib/registry.jar:../build/macosx/work/lib/jalopy.jar:../build/macosx/work/lib/log4j.jar:$CLASSPATH -d ../build/macosx/work/classes tools/*.java preproc/*.java syntax/*.java *.java
|
||||
|
||||
cd ../build/macosx/work/classes
|
||||
rm -f ../lib/pde.jar
|
||||
|
||||
+237
-225
File diff suppressed because it is too large
Load Diff
@@ -4126,7 +4126,8 @@ public class PApplet extends Applet
|
||||
|
||||
System.err.println("The file \"" + filename + "\" " +
|
||||
"is missing or inaccessible, make sure " +
|
||||
"it's been added to your sketch and is readable.");
|
||||
"the URL is valid or that the file has been " +
|
||||
"added to your sketch and is readable.");
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -4176,7 +4177,8 @@ public class PApplet extends Applet
|
||||
|
||||
System.err.println("The file \"" + filename + "\" " +
|
||||
"is missing or inaccessible, make sure " +
|
||||
"it's been added to your sketch and is readable.");
|
||||
"the URL is valid or that the file has been " +
|
||||
"added to your sketch and is readable.");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ public abstract class PGraphics extends PImage implements PConstants {
|
||||
public int pixelCount;
|
||||
|
||||
/// true if defaults() has been called a first time
|
||||
boolean defaultsInited;
|
||||
protected boolean defaultsInited;
|
||||
|
||||
/// true if in-between beginDraw() and endDraw()
|
||||
protected boolean insideDraw;
|
||||
|
||||
@@ -106,6 +106,8 @@ public class PGraphics2D extends PGraphics {
|
||||
mis.setAnimated(true);
|
||||
image = Toolkit.getDefaultToolkit().createImage(mis);
|
||||
}
|
||||
|
||||
defaultsInited = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +117,7 @@ public class PGraphics2D extends PGraphics {
|
||||
public void beginDraw() {
|
||||
insideResizeWait();
|
||||
insideDraw = true;
|
||||
|
||||
|
||||
// need to call defaults(), but can only be done when it's ok
|
||||
// to draw (i.e. for opengl, no drawing can be done outside
|
||||
// beginDraw/endDraw).
|
||||
@@ -144,7 +146,7 @@ public class PGraphics2D extends PGraphics {
|
||||
// mark pixels as having been updated, so that they'll work properly
|
||||
// when this PGraphics is drawn using image().
|
||||
updatePixels();
|
||||
|
||||
|
||||
insideDraw = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -322,6 +322,7 @@ public class PGraphics3D extends PGraphics {
|
||||
line = new PLine(this);
|
||||
triangle = new PTriangle(this);
|
||||
|
||||
defaultsInited = false;
|
||||
//System.out.println(this + " done allocating");
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
public boolean strokeGradient;
|
||||
public Paint strokeGradientObject;
|
||||
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -131,6 +131,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
protected void allocate() {
|
||||
image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
|
||||
g2 = (Graphics2D) image.getGraphics();
|
||||
defaultsInited = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -429,8 +430,8 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
public void breakShape() {
|
||||
breakShape = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void endShape(int mode) {
|
||||
if (gpath != null) { // make sure something has been drawn
|
||||
if (shape == POLYGON) {
|
||||
@@ -446,21 +447,21 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
protected void fillGradient(Paint paint) {
|
||||
fillGradient = true;
|
||||
fillGradientObject = paint;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected void noFillGradient() {
|
||||
fillGradient = false;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
+29
-23
@@ -9,38 +9,29 @@ _ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action=
|
||||
X regression in P3D that prevents point() from drawing
|
||||
X problem is with setup_vertex() not adding similar points
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=444
|
||||
X if doing openstream on url, says that "the file" is missing or invalid
|
||||
X add notes about it being a url
|
||||
|
||||
fixed earlier, bug cleaning
|
||||
X gray background in pdf (using both gl and p3d)
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=324
|
||||
X verified as fixed in 0122
|
||||
|
||||
|
||||
_ background not being set properly
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=454
|
||||
_ ARGB problems with createGraphics
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=160
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=428
|
||||
_ why aren't background() / defaults() being called for opengl?
|
||||
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpenGL;action=display;num=1118784331
|
||||
|
||||
_ using gl, lines don't show up in pdf with record (they're ok with p3d)
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=325
|
||||
|
||||
_ gradients
|
||||
_ use gradients in a class for the svg lib for now
|
||||
_ don't add api to main p5 stuff (though maybe setPaint/noPaint api?)
|
||||
|
||||
_ tint() and noTint() switching problem in P2D
|
||||
_ this should be a quick fix
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=222
|
||||
_ ARGB problems with createGraphics
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=428
|
||||
_ related to the fill bugs: when fill is identical, no fill applied
|
||||
_ actually tint() should take over for fill as per-vertex color
|
||||
_ when textured images are being used
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=169
|
||||
_ tint() should set texture color, fill() is ignored with textures
|
||||
_ fix tint() for PGraphics3 (what could be wrong?)
|
||||
_ tint() honoring alpha but not colored tint
|
||||
_ maybe not setting fill color when drawing textures
|
||||
_ guessing it's an implementation issue in sami's renderer
|
||||
_ check with the a_Displaying example and tint(255, 0, 0, 100);
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=90
|
||||
_ is fill() not coloring textures properly?
|
||||
_ don't need to apply tint() to textures, supposed to use fill color
|
||||
|
||||
_ gradient-painted lines and fills
|
||||
_ java2d will do both line and fill, illusfarter only does fills
|
||||
import java.awt.geom.*;
|
||||
@@ -57,6 +48,23 @@ g2.setPaint(gradient);
|
||||
//g2.draw(gp);
|
||||
g2.fill(gp);
|
||||
|
||||
_ tint() and noTint() switching problem in P2D
|
||||
_ this should be a quick fix
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=222
|
||||
_ related to the fill bugs: when fill is identical, no fill applied
|
||||
_ actually tint() should take over for fill as per-vertex color
|
||||
_ when textured images are being used
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=169
|
||||
_ tint() should set texture color, fill() is ignored with textures
|
||||
_ fix tint() for PGraphics3 (what could be wrong?)
|
||||
_ tint() honoring alpha but not colored tint
|
||||
_ maybe not setting fill color when drawing textures
|
||||
_ guessing it's an implementation issue in sami's renderer
|
||||
_ check with the a_Displaying example and tint(255, 0, 0, 100);
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=90
|
||||
_ is fill() not coloring textures properly?
|
||||
_ don't need to apply tint() to textures, supposed to use fill color
|
||||
|
||||
add to reference
|
||||
_ also parseInt and parseFloat, how they can return another number or NaN
|
||||
_ background() with an image ignores the tint.. it's basically like set()
|
||||
@@ -305,8 +313,6 @@ _ need to track this stuff down a bit
|
||||
_ clipboard implementation as example or as part of api
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=167
|
||||
|
||||
_ why aren't background() / defaults() being called for opengl?
|
||||
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpenGL;action=display;num=1118784331
|
||||
_ some optimizations from zach
|
||||
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1121670787
|
||||
|
||||
@@ -317,7 +323,7 @@ _ probably later, want to do the 3D/arch stuff correctly
|
||||
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
_ PApplet.main(new String[] { "classname }) won't pass in args.. grr
|
||||
_ PApplet.main(new String[] { "classname" }) won't pass in args.. grr
|
||||
_ PApplet.main(append(new String[] { "classname }, args));
|
||||
|
||||
|
||||
|
||||
@@ -836,6 +836,7 @@ public class PGraphicsOpenGL extends PGraphics3D {
|
||||
* Generate a texture ID and do the necessary bitshifting for the image.
|
||||
*/
|
||||
public void rebind(PImage source) {
|
||||
//System.out.println("rebinding texture for " + source);
|
||||
if (tindex != -1) {
|
||||
// free up the old memory
|
||||
gl.glDeleteTextures(1, new int[] { tindex }, 0);
|
||||
|
||||
@@ -15,6 +15,9 @@ X cmd-{ and cmd-} no longer work after the menu is shown
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=402
|
||||
X clicking "cancel" on close still quitting the app
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=440
|
||||
X discourse format sucked, changed to format for discourse
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=447
|
||||
X changing macosx to allow Java 1.5 to be used
|
||||
|
||||
fixed earlier or wontfix
|
||||
X double-click only selects part of underscored word
|
||||
@@ -34,10 +37,10 @@ X a moveto *inside* a shape will be treated as a lineto
|
||||
X had to fix this
|
||||
X implement polyline
|
||||
|
||||
|
||||
X updated to antlr 2.7.7
|
||||
_ added log4j (for the autoformatter)
|
||||
|
||||
_ after sketch -> add file, no confirmation message is shown
|
||||
_ applet sizing issues with external vm
|
||||
_ could this possibly be related to the linux bug?
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=430
|
||||
|
||||
Reference in New Issue
Block a user