From 473bf4869e778136dde0b320b950087b1f38fae7 Mon Sep 17 00:00:00 2001 From: benfry Date: Wed, 15 Mar 2006 14:47:30 +0000 Subject: [PATCH] fix for strokeCap() issue in opengl --- core/PGraphics.java | 25 ++++++++++++++++--------- core/todo.txt | 5 ++--- todo.txt | 8 ++++++++ 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/core/PGraphics.java b/core/PGraphics.java index 83d34f6b2..49ec1714d 100644 --- a/core/PGraphics.java +++ b/core/PGraphics.java @@ -162,11 +162,19 @@ public class PGraphics extends PImage implements PConstants { /** Last value set by strokeWeight() (read-only) */ public float strokeWeight; - /** Set by strokeJoin() (read-only) */ - public int strokeJoin; + /** + * Set by strokeJoin() (read-only). This has a default setting + * so that strokeJoin() need not be called by defaults, + * because subclasses may not implement it (i.e. PGraphicsGL) + */ + public int strokeJoin = MITER; - /** Set by strokeCap() (read-only) */ - public int strokeCap; + /** + * Set by strokeCap() (read-only). This has a default setting + * so that strokeCap() need not be called by defaults, + * because subclasses may not implement it (i.e. PGraphicsGL) + */ + public int strokeCap = ROUND; // ........................................................ @@ -605,11 +613,10 @@ public class PGraphics extends PImage implements PConstants { stroke(0); strokeWeight(ONE); - //strokeCap(SQUARE); - try { - strokeCap(ROUND); - strokeJoin(MITER); - } catch (RuntimeException e) { } // P3D will complain + //try { + //strokeCap(ROUND); + //strokeJoin(MITER); + //} catch (RuntimeException e) { } // P3D will complain background(204); diff --git a/core/todo.txt b/core/todo.txt index bef392264..8f39f776d 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -1,9 +1,8 @@ 0109 core X loadImage("") produces weird error message X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Programs;action=display;num=1136487954 - -_ still having strokeCap() problems -_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1134011764 +X still having strokeCap() problems +X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1134011764 _ when an exception comes through during cameraEvent, not printed _ need to show an actual stack trace (InvocationTargetEx) diff --git a/todo.txt b/todo.txt index 92ac34141..d40fc2f3b 100644 --- a/todo.txt +++ b/todo.txt @@ -15,6 +15,9 @@ _ fix linux dist script to work more like the exported apps _ no relative paths, etc _ http://dev.processing.org/bugs/show_bug.cgi?id=298 +_ sketch marked as modified too aggressively +_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1142415397 + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . @@ -32,6 +35,11 @@ _ when a conflicting library is found, need to report it _ altho prolly only when it's actually different (md5hash it?) _ issue of people calling their sketches things like Server +_ warn if someone extends PApplet but mis-names the sketch +_ or don't allow it to be exported +_ or at least add a note about this to the faq +_ show an error message when on export to app +_ when no main() is included but class extends PApplet _ keep checking whether google has started to honor robots.txt _ http://www.google.com/search?hl=en&lr=&q=angleMode+site%3Aprocessing.org&btnG=Search