![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCMotionStreak.h>
Public Member Functions | |
(id) | - initWithFade:minSeg:width:color:textureFilename: |
(id) | - initWithFade:minSeg:width:color:texture: |
(void) | - tintWithColor: |
(void) | - reset |
Static Public Member Functions | |
(id) | + streakWithFade:minSeg:width:color:textureFilename: |
(id) | + streakWithFade:minSeg:width:color:texture: |
Protected Attributes | |
CCTexture2D * | _texture |
CGPoint | _positionR |
ccBlendFunc | _blendFunc |
float | _stroke |
float | _fadeDelta |
float | _minSeg |
NSUInteger | _maxPoints |
NSUInteger | _nuPoints |
NSUInteger | _previousNuPoints |
CGPoint * | _pointVertexes |
float * | _pointState |
ccVertex2F * | _vertices |
unsigned char * | _colorPointer |
ccTex2F * | _texCoords |
BOOL | _fastMode |
BOOL | _startingPositionInitialized |
Properties | |
ccBlendFunc | blendFunc |
BOOL | fastMode |
CCTexture2D * | texture |
MotionStreak. Creates a trailing path.
- (id) initWithFade: | (float) | fade | |
minSeg: | (float) | minSeg | |
width: | (float) | stroke | |
color: | (ccColor3B) | color | |
texture: | (CCTexture2D *) | 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 | |
textureFilename: | (NSString *) | path | |
initializes a motion streak with fade in seconds, minimum segments, stroke's width, color and texture filename
- (void) reset |
Remove all living segments of the ribbon
+ (id) streakWithFade: | (float) | fade | |
minSeg: | (float) | minSeg | |
width: | (float) | stroke | |
color: | (ccColor3B) | color | |
texture: | (CCTexture2D *) | 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 | |
textureFilename: | (NSString *) | path | |
creates and initializes a motion streak with fade in seconds, minimum segments, stroke's width, color, texture filename
- (void) tintWithColor: | (ccColor3B) | colors |
color used for the tint
- (CGPoint*) _pointVertexes [protected] |
Pointers
- (ccBlendFunc) blendFunc [read, write, assign] |
blending function
- (BOOL) fastMode [read, write, assign] |
When fast mode is enabled, new points are added faster but with lower precision
- (CCTexture2D*) texture [read, write, retain] |
texture used for the motion streak