CCMotionStreak Class Reference
Inherits from | CCNodeRGBA : CCNode : NSObject |
Conforms to | CCTextureProtocol |
Declared in | CCMotionStreak.h |
Tasks
Other Methods
-
blendFunc
blending function
property -
fastMode
When fast mode is enabled, new points are added faster but with lower precision
property -
texture
texture 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
-
– reset
Remove all living segments of the ribbon
Other Methods
-
ribbon
Ribbon 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 blendFunc
Declared In
CCMotionStreak.h
fastMode
When fast mode is enabled, new points are added faster but with lower precision
@property (nonatomic, readwrite, assign, getter=isFastMode) BOOL fastMode
Declared In
CCMotionStreak.h
Class 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)color
Declared In
CCMotionStreak.h
streakWithFade: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 *)texture
Declared In
CCMotionStreak.h
streakWithFade: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 *)path
Declared In
CCMotionStreak.h
Instance 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)color
Declared In
CCMotionStreak.h
initWithFade: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 *)texture
Declared In
CCMotionStreak.h
initWithFade: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 *)path
Declared In
CCMotionStreak.h