CCLayer的子类,在CCLayer的基础上增加了绘制颜色的功能。
CCLayerColor新增的属性:
GLubyteopacity
ccColor3B color_
ccVerter2F squareVertices_[4]
ccColor4F squareColors_[4]
ccBlendFunc blendFunc_
-(id) initWithColor: (ccColor4B)color width: (GLfloat)w height: (GLfloat)h
-(id)initWithColor: (ccColor4B)color
-(void) setContentSize: (CGSize)size
-(void) changeWidth: (GLfloat)w height: (GLfloat)h
-(void) changeWidth: (GLfloat)w
-(void) changeHeight: (GLfloat)h
-(void) updateColor
-(void) setColor: (ccColor3B)color
-(void) setOpacity: (GLubyte)o