if (is3D() && len != 2 && len != 3) { throw new IllegalArgumentException("Use createShape(POINT, x, y) or createShape(POINT, x, y, z)"); } else if (len != 2) { if (is3D() && len != 4 && len != 6) { throw new IllegalArgumentException("Use createShape(LINE, x1, y1, x2, y2) or createShape(LINE, x1, y1, z1, x2, y2, z1)"); } else if (len != 4) { if (!is3D()) { throw new IllegalArgumentException("createShape(BOX) is not supported in 2D"); } else if (len != 1 && len != 3) { if (!is3D()) { throw new IllegalArgumentException("createShape(SPHERE) is not supported in 2D"); } else if (len != 1) {
/** * Create a new ping-pong pass buffer. * * @param sketch Processing context. * @param width Width of the pass buffer. * @param height Height of the pass buffer. */ public PostFXSupervisor(PApplet sketch, int width, int height) { this.sketch = sketch; setResolution(width, height); // set matrix for HUD restore if (sketch.g.is3D()) originalMatrix = sketch.getMatrix((PMatrix3D) null); else originalMatrix = new PMatrix3D(); }
if (is3D() && len != 2 && len != 3) { throw new IllegalArgumentException("Use createShape(POINT, x, y) or createShape(POINT, x, y, z)"); } else if (is2D() && len != 2) { if (is3D() && len != 4 && len != 6) { throw new IllegalArgumentException("Use createShape(LINE, x1, y1, x2, y2) or createShape(LINE, x1, y1, z1, x2, y2, z1)"); } else if (is2D() && len != 4) { if (!is3D()) { throw new IllegalArgumentException("createShape(BOX) is not supported in 2D"); } else if (len != 1 && len != 3) { if (!is3D()) { throw new IllegalArgumentException("createShape(SPHERE) is not supported in 2D"); } else if (len != 1) {
g.modelview.mult(src0, pt0); if (raw.is3D()) { raw.strokeWeight(weight); raw.stroke(argb0);
g.modelview.mult(src0, pt0); if (raw.is3D()) { raw.strokeWeight(weight); raw.stroke(argb0);
if (raw.is3D()) { raw.strokeWeight(weight); raw.stroke(argb0);
if (raw.is3D()) { raw.strokeWeight(weight); raw.stroke(argb0);
g.modelview.mult(src1, pt1); if (raw.is3D()) { raw.strokeWeight(sw0); raw.stroke(argb0);
g.modelview.mult(src1, pt1); if (raw.is3D()) { raw.strokeWeight(sw0); raw.stroke(argb0);
if (raw.is3D()) { raw.strokeWeight(sw0); raw.stroke(argb0);
if (raw.is3D()) { raw.strokeWeight(sw0); raw.stroke(argb0);