Exemplo n.º 1
0
  public static void setupGL(int version) {
    final int finalversion = version;
    if (ofActivity == null) Log.d("OF", "setupGL ofActivity == null!!");
    ofActivity.runOnUiThread(
        new Runnable() {

          @Override
          public void run() {
            OFEGLConfigChooser.setGLESVersion(finalversion);
          }
        });
  }
Exemplo n.º 2
0
  public static void setupGL(int version) {
    final int finalversion = version;
    ofActivity.runOnUiThread(
        new Runnable() {

          @Override
          public void run() {
            gestureListener = new OFGestureListener(ofActivity);
            OFEGLConfigChooser.setGLESVersion(finalversion);
            initView();
            instance.resume();
          }
        });

    try {
      Log.i("OF", "joining");
      instance.resourcesExtractorThread.join();
      Log.i("OF", "joined");
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }