正文  图形图像 > OpenGL/3D >

Android GLSurface 除绘制物体外,其余背景为透明

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

mGLSurfaceView.setZOrderOnTop(true);

mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);

mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);