static GLCapabilities getCaps(final String profile) {
   if (!GLProfile.isAvailable(profile)) {
     System.err.println("Profile " + profile + " n/a");
     return null;
   }
   return new GLCapabilities(GLProfile.get(profile));
 }
 @BeforeClass
 public static void initClass() {
   if (GLProfile.isAvailable(GLProfile.GL2ES2)) {
     glp = GLProfile.get(GLProfile.GL2ES2);
     Assert.assertNotNull(glp);
     caps = new GLCapabilities(glp);
     Assert.assertNotNull(caps);
     width = 256;
     height = 256;
   } else {
     setTestSupported(false);
   }
 }
Example #3
0
  @Test
  public void test40_GL3() throws AWTException, InterruptedException, InvocationTargetException {
    if (manualTest) {
      return;
    }

    if (!GLProfile.isAvailable(GLProfile.GL3)) {
      System.err.println("GL3 n/a");
      return;
    }
    final GLProfile glp = GLProfile.get(GLProfile.GL3);
    final GLCapabilities caps = new GLCapabilities(glp);
    runTestGL(caps);
  }
 @BeforeClass
 public static void initClass() {
   if (!GLProfile.isAvailable(GLProfile.GL2ES2)) {
     setTestSupported(false);
   }
 }