I am trying to compile my project after switching to cocos2d 2.0.3 and I keep getting this error. (Use of undeclared identifier 'glColor4f') Is there something else that I should use instead of this method.
glColor4f(1.0f,1.0f,1.0f,1.0f);
I am trying to compile my project after switching to cocos2d 2.0.3 and I keep getting this error. (Use of undeclared identifier 'glColor4f') Is there something else that I should use instead of this method.
glColor4f(1.0f,1.0f,1.0f,1.0f);
You can use ccDrawColor4F as a replacement.
ccDrawColor4F(1.0f, 1.0f, 1.0f, 1.0f);
As far as I know, cocos2d 2.0 uses OpenGL ES 2.0, that does not have such function. You can use glColorPointer instead.