cocos2d-iphoneopengl-es-2.0kobold2d

Cocos2d 2.0.3 Use of undeclared identifier 'glColor4f'


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);

Solution

  • You can use ccDrawColor4F as a replacement.

    ccDrawColor4F(1.0f, 1.0f, 1.0f, 1.0f);