From fa5fdc4cbbe93da290d6cea49188aa5e8738b032 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 15 Sep 2011 05:44:15 +0200 Subject: NEWT (Manual) Test Case: Add fullscreen and alwaysOnTop at window creation --- .../test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/test') 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