Hi I have been trying to overlay a GLSurfaceview onto an existing view.The code below shows how I overlay. The only thing that doesnt work is the transparency of the glsurfaceview on top.
view = new GLSurfaceView(this);
view.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
view.getHolder().setFormat(PixelFormat.TRANSLUCENT);
view.setRenderer(new Level1Renderer(this));
setContentView(R.layout.test);
addContentView(view, new LayoutParams(100,400));
I have then set the background colour in my renderer as
gl.glClearColor(0.0f, 0.0f, 0.0f, 0);
Can someone advise me as to what I am leaving out?