@Override public void setup() { hint(DISABLE_DEPTH_TEST); hint(DISABLE_OPENGL_ERRORS); hint(PApplet.DISABLE_OPTIMIZED_STROKE); hint(PApplet.DISABLE_DEPTH_MASK); hint(PApplet.DISABLE_DEPTH_SORT); frameRate(60); mtManager = new MTManager(); mtManager.addTouchListener(this); asyncSetup.execute(new Void[0]); debug(); if (frag != null) frag.setup(); }
public void runSequencer(boolean setup, boolean fragmentTransaction) { // Log.d("PDActivity", "Running sequencer"); hideBoth(); if (frag != null) { // Log.d("PDActivity", "Backgrounding current"); frag.background(); } frag = sequencer; if (setup) { // Log.d("PDActivity", "Setting up sequencer"); frag.setup(); } if (fragmentTransaction) { FragmentManager man = this.getFragmentManager(); FragmentTransaction trans = man.beginTransaction(); removeTheremin(trans); addSequencer(trans); trans.commit(); } }