00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #import <UIKit/UIKit.h>
00029
00030 #import "CCProtocols.h"
00031 #import "CCNode.h"
00032 #import "CCTouchDelegateProtocol.h"
00033
00034
00035
00036
00043 @interface CCLayer : CCNode <UIAccelerometerDelegate, CCStandardTouchDelegate, CCTargetedTouchDelegate>
00044 {
00045 BOOL isTouchEnabled;
00046 BOOL isAccelerometerEnabled;
00047 }
00048
00059 -(void) registerWithTouchDispatcher;
00060
00066 @property(nonatomic,assign) BOOL isTouchEnabled;
00071 @property(nonatomic,assign) BOOL isAccelerometerEnabled;
00072
00073 @end
00074
00075
00076
00077
00084 @interface CCColorLayer : CCLayer <CCRGBAProtocol, CCBlendProtocol>
00085 {
00086 GLubyte opacity_;
00087 ccColor3B color_;
00088 GLfloat squareVertices[4 * 2];
00089 GLubyte squareColors[4 * 4];
00090
00091 ccBlendFunc blendFunc_;
00092 }
00093
00095 + (id) layerWithColor: (ccColor4B)color width:(GLfloat)w height:(GLfloat)h;
00097 + (id) layerWithColor: (ccColor4B)color;
00098
00100 - (id) initWithColor:(ccColor4B)color width:(GLfloat)w height:(GLfloat)h;
00102 - (id) initWithColor:(ccColor4B)color;
00103
00105 -(void) changeWidth: (GLfloat)w;
00107 -(void) changeHeight: (GLfloat)h;
00111 -(void) changeWidth:(GLfloat)w height:(GLfloat)h;
00112
00114 @property (nonatomic,readonly) GLubyte opacity;
00116 @property (nonatomic,readonly) ccColor3B color;
00118 @property (nonatomic,readwrite) ccBlendFunc blendFunc;
00119 @end
00120
00126 @interface CCMultiplexLayer : CCLayer
00127 {
00128 unsigned int enabledLayer;
00129 NSMutableArray *layers;
00130 }
00131
00133 +(id) layerWithLayers: (CCLayer*) layer, ... NS_REQUIRES_NIL_TERMINATION;
00135 -(id) initWithLayers: (CCLayer*) layer vaList:(va_list) params;
00139 -(void) switchTo: (unsigned int) n;
00143 -(void) switchToAndReleaseMe: (unsigned int) n;
00144 @end