CCSprite* HelloWorld::spriteWithColor(ccColor4F bgColor,float textureSize){
//创建一个新的ccRenderTexture
CCRenderTexture * rt = CCRenderTexture::create(textureSize,textureSize);
//调用begin方法ccRendertexture:begin
rt->beginWithClear(bgColor.r,bgColor.g,bgColor.b,bgColor.a);
//绘制纹理
glDisable(GL_TEXTURE_2D);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
float gradientAlpha = 0.7f;
CCPoint vertices[4];
ccColor4F colors[4];
int nVertices =0;
vertices[nVertices] = CCPointMake(0,0);
colors[nVertices++] = ccc4f(0,0,0,0);
vertices[nVertices] = CCPointMake(textureSize,0);
colors[nVertices++] = ccc4f(0,0,0,0);
vertices[nVertices] = CCPointMake(0
//创建一个新的ccRenderTexture
CCRenderTexture * rt = CCRenderTexture::create(textureSize,textureSize);
//调用begin方法ccRendertexture:begin
rt->beginWithClear(bgColor.r,bgColor.g,bgColor.b,bgColor.a);
//绘制纹理
glDisable(GL_TEXTURE_2D);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
float gradientAlpha = 0.7f;
CCPoint vertices[4];
ccColor4F colors[4];
int nVertices =0;
vertices[nVertices] = CCPointMake(0,0);
colors[nVertices++] = ccc4f(0,0,0,0);
vertices[nVertices] = CCPointMake(textureSize,0);
colors[nVertices++] = ccc4f(0,0,0,0);
vertices[nVertices] = CCPointMake(0