- packageorg.cocos2dx.cpp;
- importorg.cocos2dx.lib.Cocos2dxActivity;
- importorg.cocos2dx.lib.Cocos2dxGLSurfaceView;
- publicclassAppActivityextendsCocos2dxActivity{
- publicCocos2dxGLSurfaceViewonCreateView(){
- Cocos2dxGLSurfaceViewglSurfaceView=newCocos2dxGLSurfaceView(this);
- glSurfaceView.setEGLConfigChooser(5,6,5,16,8);//thislineisrequiredforclipping
- returnglSurfaceView;
- }
- }