- package org.cocos2dx.cpp;
- import org.cocos2dx.lib.Cocos2dxActivity;
- import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
- public class AppActivity extends Cocos2dxActivity {
- public Cocos2dxGLSurfaceView onCreateView() {
- Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
- glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); // this line is required for clipping
- return glSurfaceView;
- }
- }
cocos2dx3.2 某些UI白屏或使用ClippingNode造成部分手机白屏
最新推荐文章于 2020-05-27 22:18:50 发布