public static void main(final String args[]) {
    for (int i = 0; i < args.length; i++) {
      if (args[i].equals("-time")) {
        i++;
        duration = MiscUtils.atol(args[i], duration);
      } else if (args[i].equals("-test")) {
        i++;
        testNum = MiscUtils.atoi(args[i], 0);
      } else if (args[i].equals("-noresize")) {
        rwsize = null;
      } else if (args[i].equals("-es2")) {
        forceES2 = true;
      } else if (args[i].equals("-gl3")) {
        forceGL3 = true;
      } else if (args[i].equals("-vsync")) {
        i++;
        swapInterval = MiscUtils.atoi(args[i], swapInterval);
      }
    }

    System.err.println("resize " + rwsize);
    System.err.println("forceES2 " + forceES2);
    System.err.println("forceGL3 " + forceGL3);
    System.err.println("swapInterval " + swapInterval);

    org.junit.runner.JUnitCore.main(TestBug816OSXCALayerPos01AWT.class.getName());
  }
 public static void main(String args[]) throws IOException {
   System.err.println("main - start");
   boolean wait = false;
   for (int i = 0; i < args.length; i++) {
     if (args[i].equals("-time")) {
       durationPerTest = MiscUtils.atoi(args[++i], (int) durationPerTest);
     }
     if (args[i].equals("-wait")) {
       wait = true;
     }
   }
   if (wait) {
     while (-1 == System.in.read()) ;
     TestGLSLShaderState01NEWT tst = new TestGLSLShaderState01NEWT();
     try {
       tst.testShaderState01PerformanceDouble();
     } catch (Exception e) {
       e.printStackTrace();
     }
   } else {
     String tstname = TestGLSLShaderState01NEWT.class.getName();
     org.junit.runner.JUnitCore.main(tstname);
   }
   System.err.println("main - end");
 }
 public static void main(String args[]) throws IOException {
   ManualTest = args.length > 0;
   for (int i = 0; i < args.length; i++) {
     if (args[i].equals("-time")) {
       i++;
       Duration = atoi(args[i]);
     } else if (args[i].equals("-fontFile")) {
       i++;
       fontFileName = args[i];
     } else if (args[i].equals("-fontSet")) {
       i++;
       fontSet = atoi(args[i]);
     } else if (args[i].equals("-fontFamily")) {
       i++;
       fontFamily = atoi(args[i]);
     } else if (args[i].equals("-fontStyle")) {
       i++;
       fontStylebits = atoi(args[i]);
     } else if (args[i].equals("-fontSize")) {
       i++;
       fontSizeFixed = atoi(args[i]);
     } else if (args[i].equals("-smsaa")) {
       i++;
       SceneMSAASamples = atoi(args[i]);
     } else if (args[i].equals("-gmsaa")) {
       i++;
       GraphMSAASamples = atoi(args[i]);
     } else if (args[i].equals("-gvbaa")) {
       i++;
       GraphVBAASamples = atoi(args[i]);
     } else if (args[i].equals("-textAnim")) {
       TextAnim = true;
     } else if (args[i].equals("-vsync")) {
       i++;
       SwapInterval = MiscUtils.atoi(args[i], SwapInterval);
     } else if (args[i].equals("-wait")) {
       WaitStartEnd = true;
     }
   }
   System.err.println(
       "Font [set "
           + fontSet
           + ", family "
           + fontFamily
           + ", style "
           + fontStylebits
           + ", size "
           + fontSizeFixed
           + "], fontFileName "
           + fontFileName);
   System.err.println("Scene MSAA Samples " + SceneMSAASamples);
   System.err.println("Graph MSAA Samples " + GraphMSAASamples);
   System.err.println("Graph VBAA Samples " + GraphVBAASamples);
   System.err.println("swapInterval " + SwapInterval);
   String tstname = TestTextRendererNEWT00.class.getName();
   org.junit.runner.JUnitCore.main(tstname);
 }
 public static void main(String args[]) throws IOException {
   for (int i = 0; i < args.length; i++) {
     if (args[i].equals("-time")) {
       duration = MiscUtils.atoi(args[++i], (int) duration);
     }
   }
   String tstname = TestBug692GL3VAONEWT.class.getName();
   org.junit.runner.JUnitCore.main(tstname);
 }
Example #5
0
 public static void main(final String[] args) {
   for (int i = 0; i < args.length; i++) {
     if (args[i].equals("-time")) {
       durationPerTest = MiscUtils.atoi(args[++i], 500);
     }
   }
   System.out.println("durationPerTest: " + durationPerTest);
   final String tstname = TestMultisampleES2NEWT.class.getName();
   org.junit.runner.JUnitCore.main(tstname);
 }
Example #6
0
 public static void main(final String args[]) {
   for (int i = 0; i < args.length; i++) {
     if (args[i].equals("-time")) {
       i++;
       try {
         duration = Integer.parseInt(args[i]);
       } catch (final Exception ex) {
         ex.printStackTrace();
       }
     } else if (args[i].equals("-vsync")) {
       i++;
       swapInterval = MiscUtils.atoi(args[i], swapInterval);
     } else if (args[i].equals("-es2")) {
       forceES2 = true;
     } else if (args[i].equals("-ffpemu")) {
       forceFFPEmu = true;
     }
   }
   org.junit.runner.JUnitCore.main(TestGearsES1NEWT.class.getName());
 }
Example #7
0
  public static void main(final String args[]) {
    int w = 640, h = 480, rw = -1, rh = -1;

    for (int i = 0; i < args.length; i++) {
      if (args[i].equals("-time")) {
        i++;
        duration = MiscUtils.atol(args[i], duration);
      } else if (args[i].equals("-es2")) {
        forceES2 = true;
      } else if (args[i].equals("-es3")) {
        forceES3 = true;
      } else if (args[i].equals("-gl3")) {
        forceGL3 = true;
      } else if (args[i].equals("-glFFP")) {
        forceGLFFP = true;
      } else if (args[i].equals("-width")) {
        i++;
        w = MiscUtils.atoi(args[i], w);
      } else if (args[i].equals("-height")) {
        i++;
        h = MiscUtils.atoi(args[i], h);
      } else if (args[i].equals("-x")) {
        i++;
        xpos = MiscUtils.atoi(args[i], xpos);
      } else if (args[i].equals("-y")) {
        i++;
        ypos = MiscUtils.atoi(args[i], ypos);
      } else if (args[i].equals("-rwidth")) {
        i++;
        rw = MiscUtils.atoi(args[i], rw);
      } else if (args[i].equals("-rheight")) {
        i++;
        rh = MiscUtils.atoi(args[i], rh);
      } else if (args[i].equals("-pixelScale")) {
        i++;
        final float pS = MiscUtils.atof(args[i], reqSurfacePixelScale[0]);
        reqSurfacePixelScale[0] = pS;
        reqSurfacePixelScale[1] = pS;
      } else if (args[i].equals("-userVFlip")) {
        skipGLOrientationVerticalFlip = true;
      } else if (args[i].equals("-vsync")) {
        i++;
        swapInterval = MiscUtils.atoi(args[i], swapInterval);
      } else if (args[i].equals("-msaa")) {
        i++;
        useMSAA = true;
        msaaNumSamples = MiscUtils.atoi(args[i], msaaNumSamples);
      } else if (args[i].equals("-noanim")) {
        useAnimator = false;
      } else if (args[i].equals("-pbuffer")) {
        shallUsePBuffer = true;
      } else if (args[i].equals("-bitmap")) {
        shallUseBitmap = true;
      } else if (args[i].equals("-manual")) {
        manualTest = true;
      } else if (args[i].equals("-demo")) {
        i++;
        demoType = MiscUtils.atoi(args[i], 0);
      }
    }
    wsize = new Dimension(w, h);
    if (0 < rw && 0 < rh) {
      rwsize = new Dimension(rw, rh);
    }

    System.err.println("size " + wsize);
    System.err.println("resize " + rwsize);
    System.err.println("userVFlip " + skipGLOrientationVerticalFlip);
    System.err.println("swapInterval " + swapInterval);
    System.err.println("forceES2 " + forceES2);
    System.err.println("forceGL3 " + forceGL3);
    System.err.println("forceGLFFP " + forceGLFFP);
    System.err.println("useMSAA " + useMSAA + ", msaaNumSamples " + msaaNumSamples);
    System.err.println("useAnimator " + useAnimator);
    System.err.println("shallUsePBuffer " + shallUsePBuffer);
    System.err.println("shallUseBitmap " + shallUseBitmap);
    System.err.println("manualTest " + manualTest);
    System.err.println("demoType " + demoType);

    org.junit.runner.JUnitCore.main(TestGearsES2GLJPanelAWT.class.getName());
  }