summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-27 15:30:35 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-27 15:30:35 -0700
commit3838ad5b07ffa2a89a57016c87cb00c472c2dba3 (patch)
tree3beeb831a8cc5f90faae3554bf4a4cc18db9bf1b /samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java
parenteda65f5f60c01a6eb4f2e9e7ff79c59fe755c2f7 (diff)
parent08f10baa11a6366642f568fbd2b1591e5345d4b2 (diff)
Merge commit 'korg/cupcake'
Diffstat (limited to 'samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java')
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java b/samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java
index 750a47ba7..a0bad4bc9 100644
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/TranslucentGLSurfaceViewActivity.java
@@ -34,6 +34,10 @@ public class TranslucentGLSurfaceViewActivity extends Activity {
// Create our Preview view and set it as the content of our
// Activity
mGLSurfaceView = new GLSurfaceView(this);
+ // We want an 8888 pixel format because that's required for
+ // a translucent window.
+ // And we want a depth buffer.
+ mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
// Tell the cube renderer that we want to render a translucent version
// of the cube:
mGLSurfaceView.setRenderer(new CubeRenderer(true));