// FEATURE: polygon caching
private Polygon polygon = null;
+ private Mesh mesh = null;
// specified directly by user
public int minwidth = 0;
}
// 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);