X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fcore%2FBox.java;fp=src%2Forg%2Fibex%2Fcore%2FBox.java;h=b68480f55114efcbc859ac2c10c22f1513cadc3f;hp=9f5aac72a8f07bf586ca7b60a6a0ed6b834710dd;hb=53b81e839d264d8cecdaf11bf9fae5579cc50e2c;hpb=38745e13616797b615c5c7e0605f4fb16f0f5357 diff --git a/src/org/ibex/core/Box.java b/src/org/ibex/core/Box.java index 9f5aac7..b68480f 100644 --- a/src/org/ibex/core/Box.java +++ b/src/org/ibex/core/Box.java @@ -69,6 +69,7 @@ public final class Box extends JS.Obj implements Callable { // FEATURE: polygon caching private Polygon polygon = null; + private Mesh mesh = null; // specified directly by user public int minwidth = 0; @@ -243,9 +244,10 @@ public final class Box extends JS.Obj implements Callable { } // FIXME: texture } else { - Polygon p = new Polygon(path, a); - p.fill(buf, new Paint.SingleColorPaint(fillcolor)); - p.stroke(buf, strokecolor); + if (mesh == null) mesh = new Mesh(new Polygon(path, Affine.identity())); + mesh.fill(buf, a, fillcolor, true, false); + mesh.stroke(buf, a, strokecolor); + //mesh.fill(buf, a, fillcolor, true, true); } for(Box b = getChild(0); b != null; b = b.nextSibling()) b.render(buf, a);