29package com.jogamp.opengl.test.junit.jogl.acore.ect;
31import java.io.IOException;
33import com.jogamp.opengl.test.junit.util.MiscUtils;
35import com.jogamp.opengl.util.Animator;
36import com.jogamp.opengl.util.AnimatorBase;
38import org.junit.FixMethodOrder;
39import org.junit.runners.MethodSorters;
44@FixMethodOrder(MethodSorters.NAME_ASCENDING)
52 public static void main(
final String args[])
throws IOException {
53 for(
int i=0; i<args.length; i++) {
54 if(args[i].equals(
"-time")) {
57 }
else if(args[i].equals(
"-vsync")) {
60 }
else if(args[i].equals(
"-showFPS")) {
62 showFPS =
MiscUtils.
atoi(args[i], showFPS ? 1 : 0) == 0 ? false : true ;
63 }
else if(args[i].equals(
"-forceExclusiveTest")) {
64 testExclusiveWithAWT =
true;
67 System.err.println(
"duration "+duration);
68 System.err.println(
"showFPS "+showFPS);
69 System.err.println(
"swapInterval "+swapInterval);
70 System.err.println(
"testExclusiveWithAWT "+testExclusiveWithAWT);
ExclusiveContextThread base implementation to test correctness of the ExclusiveContext feature and An...
ExclusiveContextThread VSync Animator to test correctness of the ExclusiveContext feature and Animato...
static void main(final String args[])
AnimatorBase createAnimator()
static int atoi(final String str, final int def)
static long atol(final String str, final long def)
Base implementation of GLAnimatorControl