您的位置:首页 > 移动开发 > Cocos引擎

安卓白屏问题

2015-06-02 19:23 459 查看
找到  
frameworks\runtime-src\proj.android\src\org\cocos2dx\lua\AppActivity.java  文件

package org.cocos2dx.lua;

import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;//修正白屏

public class AppActivity extends Cocos2dxActivity {
//修正白屏
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
// TestCpp should create stencil buffer
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);

return glSurfaceView;
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息