From 95e9e7023af6e2fcd71ecfa86e685b4343822bf0 Mon Sep 17 00:00:00 2001 From: benfry Date: Wed, 14 Sep 2005 17:14:53 +0000 Subject: [PATCH] notes and fixes to remove errant 1.4-specific code --- core/PApplet.java | 14 ++++++++------ core/todo.txt | 12 ++++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/core/PApplet.java b/core/PApplet.java index 4b7670b65..6c23863f3 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -867,18 +867,20 @@ public class PApplet extends Applet outgoing = (PGraphics) constructor.newInstance(constructorValues); } catch (InvocationTargetException ite) { - //Throwable target = ((InvocationTargetException) t).getTargetException(); - throw new RuntimeException(ite.getTargetException()); - //ite.getTargetException().printStackTrace(); + Throwable target = ite.getTargetException(); + target.printStackTrace(); + throw new RuntimeException(target.getMessage()); + //throw new RuntimeException(ite.getTargetException()); // java 1.4 } catch (ClassNotFoundException cnfe) { throw new RuntimeException("You need to use \"Import Library\" " + "to add " + renderer + " to your sketch."); } catch (Exception e) { - throw new RuntimeException(e); - //e.printStackTrace(); - //die("Could not start because of a problem with size()", e); + //throw new RuntimeException(e); // java 1.4 + e.printStackTrace(); + throw new RuntimeException("Could not start because of a " + + "problem inside size()"); } // clear things out to get started diff --git a/core/todo.txt b/core/todo.txt index 9ebadff3e..ee422a8b1 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -13,6 +13,8 @@ X error message saying that strokeCap and strokeJoin don't work in P3D X textMode(SHAPE) throws ex when drawing and font not installed X fix a bug with filename capitalization error throwing X add NO_DEPTH_TEST to PGraphics3 +X java 1.4 code snuck into PApplet, causing problems on the mac +X http://dev.processing.org/bugs/show_bug.cgi?id=146 nixed or fixed in previous releases X textMode(SCREEN) having issues on Mac OS X @@ -23,6 +25,11 @@ X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Contribution_3DOpen o noLoop() is behaving strangely o http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1116002432;start=0 +_ STROKE_WEIGHT field in PGraphics3 is a disaster, because it's an int +_ use the SW from vertex instead.. why set stroke in triangle vars at all? +_ currently truncating to an int inside add_line_no_clip +_ need to clean all this crap up + _ how to handle gluTessVertex calls _ need to re-map through the regular "vertex" command, _ but that makes things messy because the glu calls make calls to vertex() @@ -65,6 +72,8 @@ _ new PGraphics2 objects are set as RGB, but on loadPixels/updatePixels _ they're drawn as transparent and don't have their high bits set _ 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 _ sonia is locking up on load in rev 91 _ prolly something w/ the threading issues @@ -558,6 +567,9 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=127 PGraphicsGL +_ images are memory leaking pretty badly +_ texture re-allocated on each frame +_ http://dev.processing.org/bugs/show_bug.cgi?id=150 _ point() doesn't work with some graphics card setups _ http://dev.processing.org/bugs/show_bug.cgi?id=121 _ blend(), get(), set(), loadPixels, updatePixels() are broken in opengl