Sunday, August 29, 2010

transparency

mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);

mGLSurfaceView.setZOrderOnTop(true);

useful to show required background

1 comment:

  1. How does one do this if thesetZOrderOnTop method isn't available? (minSdkVersion=3)

    ReplyDelete