I have some cocos2d-iphone code to port to cocos2d-x code. But I got some problems for the following code:
glColor4ub( getColor().r, getColor().g, getColor().b,getQuad().bl.colors.a);
The error messages are:
Use of undeclared identifier ‘GL_COLOR_ARRAY’
Use of undeclared identifier ‘glColor4ub’
Can anybody tell me the reason and what should I do? Thanks in advance.
Zhe Wang wrote:
* SDK version
* which version of cocos2d-x
These info are required for your question.
Platform: iOS, I’m using xcode 4.5.2
cocos2d-x version: 2.0.4
SDK version: iOS 6.0.1