diff --git a/engine/src/core/com/jme3/system/AppSettings.java b/engine/src/core/com/jme3/system/AppSettings.java index 81ca315ee..d06211671 100644 --- a/engine/src/core/com/jme3/system/AppSettings.java +++ b/engine/src/core/com/jme3/system/AppSettings.java @@ -619,6 +619,25 @@ public final class AppSettings extends HashMap { putInteger("DepthBits", value); } + /** + * Android Only + * Sets the number of alpha bits to use. + *

+ * The number of alpha bits specifies the precision of the surface view + * background alpha value. To set the surface view to opaque (fastest setting), + * leave the number of alpha bits = 0. This will cause faster rendering, + * but android views located behind the surface view will not be viewable. + * To set the surface view to translucent, set the number of alphaBits to 8 + * or higher. Values less than 8 (except 0) will set the surface view pixel + * format to transparent.

+ * (Default: 0) + * + * @param value The alpha bits + */ + public void setAlphaBits(int value){ + putInteger("AlphaBits", value); + } + /** * Set the number of stencil bits. *

@@ -807,6 +826,15 @@ public final class AppSettings extends HashMap { return getInteger("DepthBits"); } + /** + * Android Only + * Get the number of alpha bits for the surface view to use. + * @see #setAlphaBits(int) + */ + public int getAlphaBits() { + return getInteger("AlphaBits"); + } + /** * Get the number of stencil bits * @see #setStencilBits(int)