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
CCMotionStreak Class Reference

#import <CCMotionStreak.h>

+ Inheritance diagram for CCMotionStreak:
+ Collaboration diagram for CCMotionStreak:

List of all members.

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
CCTexture2Dtexture

Detailed Description

MotionStreak. Creates a trailing path.


Member Function Documentation

- (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


Member Data Documentation

- (CGPoint*) _pointVertexes [protected]

Pointers


Property Documentation

- (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


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