public PMatrix getMatrix() { return intf.app.getMatrix(); }
public PMatrix2D getMatrix(PMatrix2D target) { return intf.app.getMatrix(target); }
public PMatrix3D getMatrix(PMatrix3D target) { return intf.app.getMatrix(target); }
/** * 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(); }