diff options
author | Sven Gothel <sgothel@jausoft.com> | 2011-10-06 03:59:43 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2011-10-06 03:59:43 +0200 |
commit | 48113ca0298ca79473dca73b85ebd4ef1a9cd078 (patch) | |
tree | 498277e390e252bf11b15b2789fea430a1f7aede /src/test/com | |
parent | fc67b7c48a7d0280c44012d5daec04f227bcf0fa (diff) |
NEWT/Android: Move fullscreen setting to AndroidWindow ; Cleanup AndroidWindow
Diffstat (limited to 'src/test/com')
7 files changed, 12 insertions, 7 deletions
diff --git a/src/test/com/jogamp/opengl/test/android/NEWTElektronActivity.java b/src/test/com/jogamp/opengl/test/android/NEWTElektronActivity.java index b36f567bb..442400868 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTElektronActivity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTElektronActivity.java @@ -57,7 +57,8 @@ public class NEWTElektronActivity extends NewtBaseActivity { // caps.setSampleBuffers(true); Log.d(TAG, "req caps: "+caps); GLWindow glWindow = GLWindow.create(caps); - setContentView(glWindow); + glWindow.setFullscreen(true); + setContentView(getWindow(), glWindow); glWindow.addGLEventListener(new ElektronenMultiplizierer()); glWindow.getWindow().getScreen().addScreenModeListener(new ScreenModeListener() { diff --git a/src/test/com/jogamp/opengl/test/android/NEWTGearsES1Activity.java b/src/test/com/jogamp/opengl/test/android/NEWTGearsES1Activity.java index 897df89cd..bc4e7d394 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTGearsES1Activity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTGearsES1Activity.java @@ -54,7 +54,7 @@ public class NEWTGearsES1Activity extends NewtBaseActivity { GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GLES1)); Log.d(TAG, "req caps: "+caps); GLWindow glWindow = GLWindow.create(caps); - setContentView(glWindow); + setContentView(getWindow(), glWindow); glWindow.addGLEventListener(new GearsES1(1)); glWindow.getWindow().getScreen().addScreenModeListener(new ScreenModeListener() { diff --git a/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java b/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java index b19c12d4a..164857760 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTGearsES2Activity.java @@ -54,7 +54,8 @@ public class NEWTGearsES2Activity extends NewtBaseActivity { GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GLES2)); Log.d(TAG, "req caps: "+caps); GLWindow glWindow = GLWindow.create(caps); - setContentView(glWindow); + glWindow.setFullscreen(true); + setContentView(getWindow(), glWindow); glWindow.addGLEventListener(new GearsES2(1)); glWindow.getWindow().getScreen().addScreenModeListener(new ScreenModeListener() { diff --git a/src/test/com/jogamp/opengl/test/android/NEWTGraphUI1pActivity.java b/src/test/com/jogamp/opengl/test/android/NEWTGraphUI1pActivity.java index 99de90f2a..83f35879b 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTGraphUI1pActivity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTGraphUI1pActivity.java @@ -57,7 +57,8 @@ public class NEWTGraphUI1pActivity extends NewtBaseActivity { caps.setSampleBuffers(true); Log.d(TAG, "req caps: "+caps); GLWindow glWindow = GLWindow.create(caps); - setContentView(glWindow); + glWindow.setFullscreen(true); + setContentView(getWindow(), glWindow); glWindow.addGLEventListener(new GPUUISceneGLListener0A(0)); glWindow.getWindow().getScreen().addScreenModeListener(new ScreenModeListener() { diff --git a/src/test/com/jogamp/opengl/test/android/NEWTGraphUI2pActivity.java b/src/test/com/jogamp/opengl/test/android/NEWTGraphUI2pActivity.java index c627ce725..17924d43d 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTGraphUI2pActivity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTGraphUI2pActivity.java @@ -58,7 +58,8 @@ public class NEWTGraphUI2pActivity extends NewtBaseActivity { caps.setSampleBuffers(true); Log.d(TAG, "req caps: "+caps); GLWindow glWindow = GLWindow.create(caps); - setContentView(glWindow); + glWindow.setFullscreen(true); + setContentView(getWindow(), glWindow); glWindow.addGLEventListener(new GPUUISceneGLListener0A(Region.VBAA_RENDERING_BIT)); glWindow.getWindow().getScreen().addScreenModeListener(new ScreenModeListener() { diff --git a/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES1Activity.java b/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES1Activity.java index bf5fcce49..6fc3a46d6 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES1Activity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES1Activity.java @@ -54,7 +54,7 @@ public class NEWTRedSquareES1Activity extends NewtBaseActivity { GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GLES1)); Log.d(TAG, "req caps: "+caps); GLWindow glWindow = GLWindow.create(caps); - setContentView(glWindow); + setContentView(getWindow(), glWindow); glWindow.addGLEventListener(new RedSquareES1(1)); glWindow.getWindow().getScreen().addScreenModeListener(new ScreenModeListener() { diff --git a/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java b/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java index fcffc5244..e9ef981b8 100644 --- a/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java +++ b/src/test/com/jogamp/opengl/test/android/NEWTRedSquareES2Activity.java @@ -54,7 +54,8 @@ public class NEWTRedSquareES2Activity extends NewtBaseActivity { GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GLES2)); Log.d(TAG, "req caps: "+caps); GLWindow glWindow = GLWindow.create(caps); - setContentView(glWindow); + glWindow.setFullscreen(true); + setContentView(getWindow(), glWindow); glWindow.addGLEventListener(new RedSquareES2(1)); glWindow.getWindow().getScreen().addScreenModeListener(new ScreenModeListener() { |