diff options
author | Sven Gothel <[email protected]> | 2013-10-25 04:44:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-10-25 04:44:39 +0200 |
commit | a444e03c8a346492de400b203d22f3f6c0067628 (patch) | |
tree | 1792c55555c5bb56c8bff13e25f17b3b4b5ed80c | |
parent | 5ee57df0fab57124afb31bc65fd87e9184cf8f16 (diff) |
TestGLProfile00NEWT: Dump Desktop's and EGL's default-device GLProfiles
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java index 68562de4e..df182c5d3 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java @@ -36,6 +36,7 @@ import org.junit.runners.MethodSorters; import javax.media.opengl.*; +import com.jogamp.common.os.Platform; import com.jogamp.opengl.JoglVersion; import com.jogamp.opengl.test.junit.util.UITestCase; @@ -45,7 +46,22 @@ public class TestGLProfile00NEWT extends UITestCase { @Test public void testInitSingleton() throws InterruptedException { GLProfile.initSingleton(); - System.err.println(JoglVersion.getDefaultOpenGLInfo(null, null, false)); + System.err.println("Desktop"); + GLDrawableFactory desktopFactory = GLDrawableFactory.getDesktopFactory(); + if( null != desktopFactory ) { + System.err.println(JoglVersion.getDefaultOpenGLInfo(desktopFactory.getDefaultDevice(), null, false)); + System.err.println(Platform.getNewline()+Platform.getNewline()+Platform.getNewline()); + } else { + System.err.println("\tNULL"); + } + + System.err.println("EGL"); + GLDrawableFactory eglFactory = GLDrawableFactory.getEGLFactory(); + if( null != eglFactory ) { + System.err.println(JoglVersion.getDefaultOpenGLInfo(eglFactory.getDefaultDevice(), null, false)); + } else { + System.err.println("\tNULL"); + } } public static void main(String args[]) throws IOException { |