版权声明:本文为博主原创文章,未经博主允许不得转载。
- android项目里,修改AppActivity类
- 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;
- }
- }