CCMotionStreak Class Reference
| Inherits from | CCNodeRGBA : CCNode : NSObject |
| Conforms to | CCTextureProtocol |
| Declared in | CCMotionStreak.h |
Tasks
Other Methods
-
blendFuncblending function
property -
fastModeWhen fast mode is enabled, new points are added faster but with lower precision
property -
texturetexture used for the motion streak
property -
+ streakWithFade:minSeg:width:color:textureFilename:creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture filename
-
+ streakWithFade:minSeg:width:color:texture:creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture
-
– initWithFade:minSeg:width:color:textureFilename:initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture filename
-
– initWithFade:minSeg:width:color:texture:initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture
-
– tintWithColor:color used for the tint
-
– resetRemove all living segments of the ribbon
Other Methods
-
ribbonRibbon used by MotionStreak (weak reference)
property -
+ streakWithFade:minSeg:image:width:length:color:creates the a MotionStreak. The image will be loaded using the TextureMgr.
-
– initWithFade:minSeg:image:width:length:color:initializes a MotionStreak. The file will be loaded using the TextureMgr.
-
– update:polling function
Properties
blendFunc
blending function
@property (nonatomic, readwrite, assign) ccBlendFunc blendFuncDeclared In
CCMotionStreak.hfastMode
When fast mode is enabled, new points are added faster but with lower precision
@property (nonatomic, readwrite, assign, getter=isFastMode) BOOL fastModeDeclared In
CCMotionStreak.hClass Methods
streakWithFade:minSeg:image:width:length:color:
creates the a MotionStreak. The image will be loaded using the TextureMgr.
+ (id)streakWithFade:(float)fade minSeg:(float)seg image:(NSString *)path width:(float)width length:(float)length color:(ccColor4B)colorDeclared In
CCMotionStreak.hstreakWithFade:minSeg:width:color:texture:
creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture
+ (id)streakWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color texture:(CCTexture2D *)textureDeclared In
CCMotionStreak.hstreakWithFade:minSeg:width:color:textureFilename:
creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture filename
+ (id)streakWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color textureFilename:(NSString *)pathDeclared In
CCMotionStreak.hInstance Methods
initWithFade:minSeg:image:width:length:color:
initializes a MotionStreak. The file will be loaded using the TextureMgr.
- (id)initWithFade:(float)fade minSeg:(float)seg image:(NSString *)path width:(float)width length:(float)length color:(ccColor4B)colorDeclared In
CCMotionStreak.hinitWithFade:minSeg:width:color:texture:
initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture
- (id)initWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color texture:(CCTexture2D *)textureDeclared In
CCMotionStreak.hinitWithFade:minSeg:width:color:textureFilename:
initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture filename
- (id)initWithFade:(float)fade minSeg:(float)minSeg width:(float)stroke color:(ccColor3B)color textureFilename:(NSString *)pathDeclared In
CCMotionStreak.h