Code example for GLSurfaceView

Methods: setEGLConfigChoosergetHoldersetZOrderOnTop

0
    	if(transparent) {
            mSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
            mSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
            mSurfaceView.setZOrderOnTop(true);
    	} else { 
            mSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
            mSurfaceView.getHolder().setFormat(PixelFormat.RGBA_8888);
            mSurfaceView.setZOrderOnTop(false);
    	} 
    } 
     
    protected void setRenderer(RajawaliRenderer renderer) {
    	mRajRenderer = renderer;
    	mSurfaceView.setRenderer(renderer);
    } 
     
    @Override 
    protected void onResume() { 
    	super.onResume(); 
    	if(mRajRenderer == null) return;
Stop searching for code, let great code find you!  Add Codota to your java IDE