参考博文:http://blog.csdn.net/myarrow/article/details/19913653

参考博文:http://blog.csdn.net/song_hui_xiang/article/details/22809647

强调一下Android部分有个错误的地方:

  1. public Cocos2dxGLSurfaceView(final Context context) {
  2. super(context);
  3. this.setEGLConfigChooser(5, 6, 5, 0, 16, 8); // 添加此句
  4. this.initView();
  5. }

如果按照博文里面的位置设置有些机型会启动不起来,直接crash。

应该放在:

  1. public abstract class Cocos2dxActivity extends Activity implements Cocos2dxHelperListener {

  2. public Cocos2dxGLSurfaceView onCreateView() {
  3. Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
  4. glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
  5. return glSurfaceView;
  6. }
  7. }

最新文章

  1. Understanding glibc malloc【待译】
  2. ArcGIS10.1 发布气温插值GP服务
  3. AngularJS 日期转换字符串
  4. debug note-- nginx php-fpm : Error:The page you are looking for is temporarily unavailable.
  5. 【原创】基于Memcached 实现用户登录的Demo(附源码)
  6. ActionResult,PartialViewResult,EmptyResult,ContentResult
  7. POJ 1182 食物链(种类并查集)
  8. [React Testing] The Redux Store - Multiple Actions
  9. Js获取Gridview中Dropdownlist选中状态
  10. CocoaPods on Xcode 6 and Yosemite
  11. windows利用iis配置反向代理实现ECS内网互通oss
  12. 修改was数据源
  13. Java框架spring 学习笔记(十五):操作MySQL数据库
  14. [Deep-Learning-with-Python]GAN图片生成
  15. sqlserver 模糊查询,连表,聚合函数,分组
  16. Mapnik初学笔记
  17. 路遥眼里的河南人<平凡的世界>
  18. sql server数字转字符串出现科学计数法
  19. 211. String Permutation【LintCode by java】
  20. for...of 与 for...in 区别

热门文章

  1. CCF ISBN
  2. PAT 1011 World Cup Betting (20分) 比较大小难度级别
  3. mybatis多对一与一对多
  4. SpringBoot2.x整合quartz实现多任务定时执行
  5. 4.2 Go switch
  6. 模板渲染jnja2模块
  7. zabbix监控redis多实例cpu mem-自动发现
  8. POJ3225
  9. JUC整理笔记一之细说Unsafe
  10. Istio VirtualService 虚拟服务