ccBlendFunc and Android

ccBlendFunc and Android
0.0 0


Hi all! I’m VERY new to cocos2dx (and C++ for that matter) so bear with me if this is a dumb question. I’m developing an application using Visual Studio on a Windows 7 machine and compiling it for Android. Everything has been working fine so far but today I ran into an issue when compiling and I can’t seem to find an answer about how to fix it. I have this code, inside a class that inherits from CCLayer:

#include "cocos2d.h"

navBar = CCSprite::create("myImage.png");
ccBlendFunc blendFunction = {GL_SRC0_ALPHA, GL_ONE};
addChild(navBar, 101);

I don’t have any problems compiling and running it in Visual Studio but when I run in Cygwin I get the following error:

error: ‘GL_SRC0_ALPHA’ was not declared in this scope

Is there something special I need to do to make this work with Android? Do I need to include an Android-specific header file or something?

Thanks in advance for your help!