Cocos2dx 3.16透明背景设置

Cocos2dx 3.16透明背景设置:

一.AppDelegate.cpp

director->setClearColor(cocos2d::Color4F(0.0f, 0.0f, 0.0f, 0.0f));

二.Cocos2dxActivity.java

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

  

转载于:https://www.cnblogs.com/iluoye/p/8136798.html

你可能感兴趣的:(Cocos2dx 3.16透明背景设置)