|
@@ -76,7 +76,7 @@ public class GodotView extends GLSurfaceView {
|
|
private final GodotRenderer godotRenderer;
|
|
private final GodotRenderer godotRenderer;
|
|
|
|
|
|
public GodotView(Context context, Godot godot, XRMode xrMode, boolean p_use_gl3,
|
|
public GodotView(Context context, Godot godot, XRMode xrMode, boolean p_use_gl3,
|
|
- boolean p_use_32_bits, boolean p_use_debug_opengl) {
|
|
|
|
|
|
+ boolean p_use_32_bits, boolean p_use_debug_opengl, boolean p_translucent) {
|
|
super(context);
|
|
super(context);
|
|
GLUtils.use_gl3 = p_use_gl3;
|
|
GLUtils.use_gl3 = p_use_gl3;
|
|
GLUtils.use_32 = p_use_32_bits;
|
|
GLUtils.use_32 = p_use_32_bits;
|
|
@@ -86,7 +86,8 @@ public class GodotView extends GLSurfaceView {
|
|
this.inputHandler = new GodotInputHandler(this);
|
|
this.inputHandler = new GodotInputHandler(this);
|
|
this.detector = new GestureDetector(context, new GodotGestureHandler(this));
|
|
this.detector = new GestureDetector(context, new GodotGestureHandler(this));
|
|
this.godotRenderer = new GodotRenderer();
|
|
this.godotRenderer = new GodotRenderer();
|
|
- init(xrMode, false, 16, 0);
|
|
|
|
|
|
+
|
|
|
|
+ init(xrMode, p_translucent, 16, 0);
|
|
}
|
|
}
|
|
|
|
|
|
public void initInputDevices() {
|
|
public void initInputDevices() {
|
|
@@ -139,6 +140,7 @@ public class GodotView extends GLSurfaceView {
|
|
* is interpreted as any 32-bit surface with alpha by SurfaceFlinger.
|
|
* is interpreted as any 32-bit surface with alpha by SurfaceFlinger.
|
|
*/
|
|
*/
|
|
if (translucent) {
|
|
if (translucent) {
|
|
|
|
+ this.setZOrderOnTop(true);
|
|
this.getHolder().setFormat(PixelFormat.TRANSLUCENT);
|
|
this.getHolder().setFormat(PixelFormat.TRANSLUCENT);
|
|
}
|
|
}
|
|
|
|
|