Hi all.
I’m develop game using cocos2d-x v.3.10 or later
I creating a game have scene as same ar. I have android camera view beside cocosGlSurfaceView.
But i can’t make GLSurfaceView transparent.
I did folow
*CocosActivity
this.mGLSurfaceView.setZOrderOnTop(true);
this.mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
this.mGLSurfaceView.setEGLConfigChooser(8,8,8,8,16,0);
*CocosRenderer
pGL10.glDisable(GL10.GL_DITHER);
pGL10.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
pGL10.glClearColor(0, 0, 0, 0);
pGL10.glEnable(GL10.GL_CULL_FACE);
pGL10.glShadeModel(GL10.GL_SMOOTH);
and in C++ , I using
director->setClearColor(Color4F(0.0f, 0.0f, 0.0f, 0.0f));
But, SurfaceView not transparent, it have a black backgroudn.
Anyone help me please. I really need it for my project.
Thanks you.