问题在cocos2d-iphone-2.1-beta2 CCScrollLayer [英] issue with CCScrollLayer in cocos2d-iphone-2.1-beta2

查看:168
本文介绍了问题在cocos2d-iphone-2.1-beta2 CCScrollLayer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有问题,如CCScrollLayer在最新的cocos2d测试版,主要是在编译我得到:使用未声明的标识符'CC_GL_BLEND'

Hi there I'm having problems as stated with CCScrollLayer in the lateste cocos2d beta, mainly that on compiling I get: use of undeclared identifier 'CC_GL_BLEND'. Is there any way to sort this problem that anyone has found yet?

推荐答案

安全地你可以评论这一行。anyway blending是什么意思?已经启用...并且在cocos2D 2.1测试版发生此更改后,一切正常。

Safely you can comment that line..anyway blending is already enabled...and everything works fine after this change in cocos2D 2.1 beta.

// Set GL Values
#if COCOS2D_VERSION >= 0x00020000
      //  ccGLEnable(CC_GL_BLEND); //Guru
        ccPointSize( 6.0 * CC_CONTENT_SCALE_FACTOR() );
#define DRAW_4B_FUNC ccDrawColor4B

#else
        glEnable(GL_POINT_SMOOTH);
        GLboolean blendWasEnabled = glIsEnabled( GL_BLEND );
        glEnable(GL_BLEND);

这篇关于问题在cocos2d-iphone-2.1-beta2 CCScrollLayer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆