Inherits from CCLayer : CCNode : NSObject
Conforms to CCRGBAProtocol
Declared in CCLayer.h

Overview

CCLayerRGBA is a subclass of CCLayer that implements the CCRGBAProtocol protocol using a solid color as the background.

All features from CCLayer are valid, plus the following new features that propagate into children that conform to the CCRGBAProtocol: – opacity – RGB colors

Tasks

Instance Methods

opacity

sets and returns the opacity.

- (GLubyte)opacity

Discussion

Warning: If the the texture has premultiplied alpha then, the R, G and B channels will be modified. Values goes from 0 to 255, where 255 means fully opaque.

Declared In

CCProtocols.h