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

#import <CCLayer.h>

+ Inheritance diagram for CCLayerColor:
+ Collaboration diagram for CCLayerColor:

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:

Protected Attributes

ccVertex2F _squareVertices [4]
ccColor4F _squareColors [4]
ccBlendFunc _blendFunc

Properties

ccBlendFunc blendFunc

Detailed Description

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

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

  • opacity
  • RGB colors

Member Function Documentation

- (void) changeHeight: (GLfloat)  h

change height in Points

- (void) changeWidth: (GLfloat)  w

change width in Points

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

change width and height in Points

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 in Points. This is the designated initializer.

+ (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 in Points


Property Documentation

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

BlendFunction. Conforms to CCBlendProtocol protocol


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