diff options
author | Sven Gothel <[email protected]> | 2011-09-14 13:39:34 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-14 13:39:34 +0200 |
commit | a245d530274908427806a9a00242256f372c6552 (patch) | |
tree | 663f1db3336a4c39d5f276fafcb54fb4b8fd605c /src/test | |
parent | f45753d2da46786b023166f805bacbc3bdce71c1 (diff) |
NEWT setAlwaysOnTop(): Allow windows to stay permanent on top; TODO: X11/Windows
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java | 9 |
1 files changed, 9 insertions, 0 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 3c7a8a006..ef7d86552 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 @@ -70,6 +70,7 @@ public class TestGearsES2NEWT extends UITestCase { } protected void runTestGL(GLCapabilities caps, boolean undecorated) throws InterruptedException { + System.err.println("requested: "+caps); GLWindow glWindow = GLWindow.create(caps); Assert.assertNotNull(glWindow); glWindow.setTitle("Gears NEWT Test (translucent "+!caps.isBackgroundOpaque()+")"); @@ -94,6 +95,13 @@ public class TestGearsES2NEWT extends UITestCase { f_glWindow.setFullscreen(!f_glWindow.isFullscreen()); System.err.println("[set fullscreen post]: "+f_glWindow.getX()+"/"+f_glWindow.getY()+" "+f_glWindow.getWidth()+"x"+f_glWindow.getHeight()+", f "+f_glWindow.isFullscreen()+", "+f_glWindow.getInsets()); } }.start(); + } else if(e.getKeyChar()=='a') { + new Thread() { + public void run() { + System.err.println("[set alwaysontop pre]: "+f_glWindow.getX()+"/"+f_glWindow.getY()+" "+f_glWindow.getWidth()+"x"+f_glWindow.getHeight()+", a "+f_glWindow.isAlwaysOnTop()+", "+f_glWindow.getInsets()); + f_glWindow.setAlwaysOnTop(!f_glWindow.isAlwaysOnTop()); + System.err.println("[set alwaysontop post]: "+f_glWindow.getX()+"/"+f_glWindow.getY()+" "+f_glWindow.getWidth()+"x"+f_glWindow.getHeight()+", a "+f_glWindow.isAlwaysOnTop()+", "+f_glWindow.getInsets()); + } }.start(); } else if(e.getKeyChar()=='d') { new Thread() { public void run() { @@ -116,6 +124,7 @@ public class TestGearsES2NEWT extends UITestCase { glWindow.setVisible(true); System.err.println("size/pos: "+f_glWindow.getX()+"/"+f_glWindow.getY()+" "+f_glWindow.getWidth()+"x"+f_glWindow.getHeight()+", "+f_glWindow.getInsets()); + System.err.println("chosen: "+glWindow.getChosenCapabilities()); animator.setUpdateFPSFrames(1, null); animator.start(); |