コード例 #1
0
ファイル: OFAndroid.java プロジェクト: oxillo/openFrameworks
  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);
          }
        });
  }
コード例 #2
0
ファイル: OFAndroid.java プロジェクト: rsodre/openFrameworks
  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();
    }
  }