ccDrawColor4F not change color, not work


#1

in my project ,following code is ok, can draw a circle with white color

cocos2d::ccDrawColor4F(255, 255, 255, 255); //color white cocos2d::ccDrawCircle(CCPointZero, _attackRange, 360, 30, false); CCNode::draw();

but when i use pure opengl es like following , ccDrawColor4F is not work, the color can’t be changed, still be white. can any help me .:slight_smile:
@ ccDrawColor4F(0, 0, 233, 0);
ccGLEnableVertexAttribs( kCCVertexAttribFlag_Position | kCCVertexAttribFlag_Color );
glVertexAttribPointer(kCCVertexAttrib_Position, 2, GL_FLOAT, GL_FALSE, 0, poli);
glDrawArrays(GL_TRIANGLE_FAN, 0, points);@