diff options
author | Sven Gothel <[email protected]> | 2011-09-15 05:44:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-15 05:44:15 +0200 |
commit | fa5fdc4cbbe93da290d6cea49188aa5e8738b032 (patch) | |
tree | 2e5fd4ce31ac10f4db95d7715013a2dccf5278c7 /src | |
parent | 0b753d75c36af7dd5bb0864f02b934a51991e658 (diff) |
NEWT (Manual) Test Case: Add fullscreen and alwaysOnTop at window creation
Diffstat (limited to 'src')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java index ef7d86552..df86b83d2 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java @@ -74,7 +74,10 @@ public class TestGearsES2NEWT extends UITestCase { GLWindow glWindow = GLWindow.create(caps); Assert.assertNotNull(glWindow); glWindow.setTitle("Gears NEWT Test (translucent "+!caps.isBackgroundOpaque()+")"); + glWindow.setSize(width, height); glWindow.setUndecorated(undecorated); + glWindow.setAlwaysOnTop(alwaysOnTop); + glWindow.setFullscreen(fullscreen); glWindow.addGLEventListener(new GearsES2()); Animator animator = new Animator(glWindow); @@ -120,7 +123,6 @@ public class TestGearsES2NEWT extends UITestCase { } }); - glWindow.setSize(width, height); glWindow.setVisible(true); System.err.println("size/pos: "+f_glWindow.getX()+"/"+f_glWindow.getY()+" "+f_glWindow.getWidth()+"x"+f_glWindow.getHeight()+", "+f_glWindow.getInsets()); @@ -147,6 +149,8 @@ public class TestGearsES2NEWT extends UITestCase { static long duration = 500; // ms static boolean opaque = true; static boolean undecorated = false; + static boolean alwaysOnTop = false; + static boolean fullscreen = false; public static void main(String args[]) { for(int i=0; i<args.length; i++) { @@ -159,6 +163,10 @@ public class TestGearsES2NEWT extends UITestCase { opaque = false; } else if(args[i].equals("-undecorated")) { undecorated = true; + } else if(args[i].equals("-atop")) { + alwaysOnTop = true; + } else if(args[i].equals("-fullscreen")) { + fullscreen = true; } } org.junit.runner.JUnitCore.main(TestGearsES2NEWT.class.getName()); |