aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-07-08 06:15:59 +0200
committerSven Gothel <[email protected]>2019-07-08 06:15:59 +0200
commit29ad35ab598b6d97367e2e9763f0d2a96c52bcaa (patch)
tree7fd7131f9a9c728ed1c8f657a6ee67faee13cc34 /src/nativewindow/classes/jogamp
parentb4fef61928cfd379dcb956e17a63495a18444f8a (diff)
NEWT iOS: Support translucent windows
and remove the redColor default background (debug only). IOSUtil.CreateUIWindow(..) also gets its 'visible' attribute, to be true only for demo Hello1 code - false for intended Proxy Surface Hook.
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/ios/IOSDummyUpstreamSurfaceHook.java2
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/ios/IOSUtil.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/ios/IOSDummyUpstreamSurfaceHook.java b/src/nativewindow/classes/jogamp/nativewindow/ios/IOSDummyUpstreamSurfaceHook.java
index a61287f8b..079f6c5a8 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/ios/IOSDummyUpstreamSurfaceHook.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/ios/IOSDummyUpstreamSurfaceHook.java
@@ -53,7 +53,7 @@ public class IOSDummyUpstreamSurfaceHook extends UpstreamSurfaceHookMutableSize
@Override
public final void create(final ProxySurface s) {
if(0 == uiWindow && 0 == s.getSurfaceHandle()) {
- uiWindow = IOSUtil.CreateUIWindow(0, 0, 64, 64);
+ uiWindow = IOSUtil.CreateUIWindow(0, 0, 64, 64, false);
if(0 == uiWindow) {
throw new NativeWindowException("Error UI window 0");
}
diff --git a/src/nativewindow/classes/jogamp/nativewindow/ios/IOSUtil.java b/src/nativewindow/classes/jogamp/nativewindow/ios/IOSUtil.java
index 7100cb0b5..4790f21da 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/ios/IOSUtil.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/ios/IOSUtil.java
@@ -130,12 +130,12 @@ public class IOSUtil implements ToolkitProperties {
}
}
- public static long CreateUIWindow(final int x, final int y, final int width, final int height) {
+ public static long CreateUIWindow(final int x, final int y, final int width, final int height, final boolean visible) {
final long res[] = { 0 };
RunOnMainThread(true, false /* kickNSApp */, new Runnable() {
@Override
public void run() {
- res[0] = CreateUIWindow0(x, y, width, height);
+ res[0] = CreateUIWindow0(x, y, width, height, visible);
} } );
return res[0];
}
@@ -312,7 +312,7 @@ public class IOSUtil implements ToolkitProperties {
private static native Object GetInsets0(long windowOrView);
private static native float GetScreenPixelScale1(int screenIdx);
private static native float GetScreenPixelScale2(long windowOrView);
- private static native long CreateUIWindow0(int x, int y, int width, int height);
+ private static native long CreateUIWindow0(int x, int y, int width, int height, boolean visible);
private static native void DestroyUIWindow0(long uiWindow);
private static native long GetCALayer0(long uiView);
private static native long GetCAEAGLLayer0(long uiView);