CCClippingNode 在部分移动平台机型上面失效的解决方案
2014-03-26 10:34
281 查看
原文链接:http://cocos2d-x.org/forums/6/topics/20141?r=20567
for iOS:
in AppController replace the gl-view creation with:
for Android:
in game activity:
for iOS:
in AppController replace the gl-view creation with:
EAGLView *__glView = [EAGLView viewWithFrame: [window bounds] pixelFormat: kEAGLColorFormatRGBA8 depthFormat: GL_DEPTH24_STENCIL8_OES preserveBackbuffer: NO sharegroup: nil multiSampling: NO numberOfSamples: 0];
for Android:
in game activity:
public Cocos2dxGLSurfaceView onCreateView() { Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); return glSurfaceView; }
相关文章推荐
- cocos2d-x 基于CCClippingNode实现CCLayer遮罩功能,在滑动时超出剪切区域的实现显示部分的效果,不需要再借助其他sprite来遮挡了
- [Phonegap+Sencha Touch] 移动开发25 关于sencha touch在华为、红米、HTC等部分手机下hide事件失效,msgbox无法关闭的解决方案
- [Phonegap+Sencha Touch] 移动开发25 关于sencha touch在华为、红米、HTC等部分手机下hide事件失效,msgbox无法关闭的解决方案
- 关于sencha touch在华为、红米等部分手机下hide事件失效,msgbox无法关闭的解决方案(已更新最新解决方案)
- cocos2d-x 2.2.0 图片选中聚焦 ,图片描边 CCClippingNode 实现
- 一种新的基于Windows Mobile平台的移动开发N层架构(第三部分)
- CCClippingNode 的简单使用(coco2d-x 2.2.4)
- CCClippingNode特性
- cocos2d-x新特性之CCClippingNode
- 【移动端debug-3】部分安卓机型不触发touchend事件的解决方案
- 利用CCClippingNode创建裁剪区域以及Stencil buffer is not enabled错误解决
- 视高盛景企业级移动应用解决方案 让一次开发实现多平台应用
- CCClippingNode的一个bug
- 一种新的基于Windows Mobile平台的移动开发N层架构(第七部分)
- 一种新的基于Windows Mobile平台的移动开发N层架构(第十部分)
- cocos2dx用裁剪区域CCClippingNode实现滚动字幕
- 解决cocos2d-x的CCClippingNode在iOS上没效果的问题
- Unity3d中文在部分机型显示不全解决方案
- cocos2d-x初探学习笔记(30)2.1新特性之CCClippingNode