Public Member Functions | Static Public Member Functions | Properties

CCColorLayer Class Reference

#import <CCLayer.h>

Inherits CCLayer, CCRGBAProtocol-p, and CCBlendProtocol-p.

Collaboration diagram for CCColorLayer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithColor:width:height:
(id) - initWithColor:
(void) - changeWidth:
(void) - changeHeight:
(void) - changeWidth:height:

Static Public Member Functions

(id) + layerWithColor:width:height:
(id) + layerWithColor:

Properties

GLubyte opacity
ccColor3B color
ccBlendFunc blendFunc

Detailed Description

CCColorLayer is a subclass of CCLayer that implements the CCRGBAProtocol protocol.

All features from CCLayer are valid, plus the following new features:

Definition at line 85 of file CCLayer.h.


Member Function Documentation

- (void) changeHeight: (GLfloat)  h  

change height

- (void) changeWidth: (GLfloat)  w  

change width

- (void) changeWidth: (GLfloat)  w
height: (GLfloat)  h 

change width and height

Since:
v0.8
- (id) initWithColor: (ccColor4B color  

initializes a CCLayer with color. Width and height are the window size.

- (id) initWithColor: (ccColor4B color
width: (GLfloat)  w
height: (GLfloat)  h 

initializes a CCLayer with color, width and height

+ (id) layerWithColor: (ccColor4B color  

creates a CCLayer with color. Width and height are the window size.

+ (id) layerWithColor: (ccColor4B color
width: (GLfloat)  w
height: (GLfloat)  h 

creates a CCLayer with color, width and height


Property Documentation

- (ccBlendFunc) blendFunc [read, write, assign]

BlendFunction. Conforms to CCBlendProtocol protocol

Definition at line 120 of file CCLayer.h.

- (ccColor3B) color [read, assign]

Opacity: conforms to CCRGBAProtocol protocol

Definition at line 118 of file CCLayer.h.

- (GLubyte) opacity [read, assign]

Opacity: conforms to CCRGBAProtocol protocol

Definition at line 116 of file CCLayer.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1