cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCLayerRGBA Class Reference

#import <CCLayer.h>

+ Inheritance diagram for CCLayerRGBA:
+ Collaboration diagram for CCLayerRGBA:

List of all members.

Public Member Functions

(GLubyte) - opacity

Protected Attributes

GLubyte _displayedOpacity
GLubyte _realOpacity
ccColor3B _displayedColor
ccColor3B _realColor
BOOL _cascadeOpacityEnabled
BOOL _cascadeColorEnabled

Detailed Description

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

The documentation for this class was generated from the following file: