Skip to main content

CCMotionStreak

CCMotionStreak

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol

Constructors

CCMotionStreak()

CCMotionStreak()()
Example

CCMotionStreak(float, float, float, CCColor3B, CCTexture2D)

CCMotionStreak(float, float, float, CCColor3B, CCTexture2D)(System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, Cocos2D.CCTexture2D texture)
Parameters:
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
texture (Cocos2D.CCTexture2D)

CCMotionStreak(float, float, float, CCColor3B, string)

CCMotionStreak(float, float, float, CCColor3B, string)(System.Single fadeTime, System.Single minSegLength, System.Single streakWidth, Cocos2D.CCColor3B color, System.String pathToTexture)
Parameters:
fadeTime (System.Single)
minSegLength (System.Single)
streakWidth (System.Single)
color (Cocos2D.CCColor3B)
pathToTexture (System.String)

Fields

m_bFastMode(System.Boolean)
m_bStartingPositionInitialized(System.Boolean)

Properties

BlendFunc(Cocos2D.CCBlendFunc)

gets or sets the source blending function for the texture

FastMode(System.Boolean)
IsOpacityModifyRGB(System.Boolean)

sets the premultipliedAlphaOpacity property. If set to NO then opacity will be applied as: glColor(R,G,B,opacity); If set to YES then oapcity will be applied as: glColor(opacity, opacity, opacity, opacity ); Textures with premultiplied alpha will have this property by default on YES. Otherwise the default value is NO @since v0.8

Opacity(System.Byte)

Gets or sets the Opacity @warning If the the texture has premultiplied alpha then, the R, G and B channels will be modifed. Values goes from 0 to 255, where 255 means fully opaque.

Position(Cocos2D.CCPoint)

Sets and gets the position of the node. For Menus, this is the center of the menu. For layers, this is the lower left corner of the layer.

StartingPositionInitialized(System.Boolean)
Texture(Cocos2D.CCTexture2D)

gets or sets a new texture. it will be retained

Methods

Draw()

Draw()()

This is called from the Visit() method. This is where you DRAW your node. Only draw stuff from this method call.

Example

InitWithFade(float, float, float, CCColor3B, CCTexture2D)

System.Boolean InitWithFade(float, float, float, CCColor3B, CCTexture2D)(System.Single fade, System.Single minSeg, System.Single stroke, Cocos2D.CCColor3B color, Cocos2D.CCTexture2D texture)
Parameters:
fade (System.Single)
minSeg (System.Single)
stroke (System.Single)
color (Cocos2D.CCColor3B)
texture (Cocos2D.CCTexture2D)
Returns:
System.Boolean

InitWithFade(float, float, float, CCColor3B, string)

System.Boolean InitWithFade(float, float, float, CCColor3B, string)(System.Single fade, System.Single minSeg, System.Single stroke, Cocos2D.CCColor3B color, System.String path)
Parameters:
fade (System.Single)
minSeg (System.Single)
stroke (System.Single)
color (Cocos2D.CCColor3B)
path (System.String)
Returns:
System.Boolean

TintWithColor(CCColor3B)

TintWithColor(CCColor3B)(Cocos2D.CCColor3B colors)
Parameters:
colors (Cocos2D.CCColor3B)

Update(float)

Update(float)(System.Single delta)
Parameters:
delta (System.Single)
Example