如何在 cocos2d 1.1 中将 z-index 设置为 ccDrawPoly() 以将其绘制在场景中的所有 CCSprite(s) 之上?
-(void)draw
{
CGSize screenSize = [[CCDirector sharedDirector] winSize];
glEnable(GL_LINE_SMOOTH);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
glColor4ub(0, 0, 255, 255);
glLineWidth(2);
CGPoint vertices2[] = { ccp(0,0), ccp(0,screenSize.height*0.5), ccp(screenSize.width*0.5,screenSize.height*0.5), ccp(screenSize.width*0.5,0) };
ccDrawPoly(vertices2, 4, YES);
}