summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/junit/com/jogamp')
-rw-r--r--src/junit/com/jogamp/test/junit/jogl/acore/TestGLProfile01NEWT.java17
-rw-r--r--src/junit/com/jogamp/test/junit/util/DumpGLInfo.java (renamed from src/junit/com/jogamp/test/junit/util/DumpVersion.java)5
2 files changed, 17 insertions, 5 deletions
diff --git a/src/junit/com/jogamp/test/junit/jogl/acore/TestGLProfile01NEWT.java b/src/junit/com/jogamp/test/junit/jogl/acore/TestGLProfile01NEWT.java
index 860a181a4..fc48ac39f 100644
--- a/src/junit/com/jogamp/test/junit/jogl/acore/TestGLProfile01NEWT.java
+++ b/src/junit/com/jogamp/test/junit/jogl/acore/TestGLProfile01NEWT.java
@@ -28,8 +28,11 @@
package com.jogamp.test.junit.jogl.acore;
+import com.jogamp.common.GlueGenVersion;
+import com.jogamp.common.util.VersionUtil;
+import com.jogamp.nativewindow.NativeWindowVersion;
import com.jogamp.test.junit.util.UITestCase;
-import com.jogamp.test.junit.util.DumpVersion;
+import com.jogamp.test.junit.util.DumpGLInfo;
import org.junit.Assert;
import org.junit.Before;
@@ -42,6 +45,7 @@ import com.jogamp.newt.*;
import com.jogamp.newt.opengl.*;
import com.jogamp.newt.*;
+import com.jogamp.opengl.JoglVersion;
import java.io.IOException;
public class TestGLProfile01NEWT extends UITestCase {
@@ -59,6 +63,15 @@ public class TestGLProfile01NEWT extends UITestCase {
}
@Test
+ public void test00Version() {
+ System.err.println(VersionUtil.getPlatformInfo());
+ System.err.println(GlueGenVersion.getInstance());
+ System.err.println(NativeWindowVersion.getInstance());
+ System.err.println(JoglVersion.getInstance());
+ System.err.println(NewtVersion.getInstance());
+ }
+
+ @Test
public void test01GLProfileDefault() {
System.out.println("GLProfile <static> "+GLProfile.glAvailabilityToString());
GLProfile glp = GLProfile.getDefault();
@@ -145,7 +158,7 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertNotNull(glWindow);
glWindow.setTitle("TestGLProfile01NEWT");
- glWindow.addGLEventListener(new DumpVersion());
+ glWindow.addGLEventListener(new DumpGLInfo());
glWindow.setSize(128, 128);
glWindow.setVisible(true);
diff --git a/src/junit/com/jogamp/test/junit/util/DumpVersion.java b/src/junit/com/jogamp/test/junit/util/DumpGLInfo.java
index 25b1fe86a..fd7844f67 100644
--- a/src/junit/com/jogamp/test/junit/util/DumpVersion.java
+++ b/src/junit/com/jogamp/test/junit/util/DumpGLInfo.java
@@ -33,12 +33,11 @@ import javax.media.opengl.*;
import com.jogamp.opengl.JoglVersion;
-public class DumpVersion implements GLEventListener {
+public class DumpGLInfo implements GLEventListener {
public void init(GLAutoDrawable drawable) {
GL gl = drawable.getGL();
-
- System.err.println(JoglVersion.getInstance().toString(gl));
+ System.err.println(JoglVersion.getInstance().getGLInfo(gl, null));
}
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {