Class CCMotionStreak

#include <Geode/cocos/misc_nodes/CCMotionStreak.h>
classCCMotionStreak:publiccocos2d::CCNodeRGBA,publiccocos2d::CCTextureProtocol{ ... }

MotionStreak. Creates a trailing path.

Examples0
Public static methods2
staticcocos2d::CCMotionStreak*create(
floatfade
,
floatminSeg
,
floatstroke
,,)

creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture filename

staticcocos2d::CCMotionStreak*create(
floatfade
,
floatminSeg
,
floatstroke
,,)

creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture

Public member functions28
boolinitWithFade(
floatfade
,
floatminSeg
,
floatstroke
,,)

initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture filename

boolinitWithFade(
floatfade
,
floatminSeg
,
floatstroke
,,)

initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture

voidtintWithColor()

color used for the tint

voidreset()

Remove all living segments of the ribbon

virtualvoidsetPosition()

Override super methods

virtualvoiddraw()
No description provided
virtualvoidupdate(
floatdelta
)
No description provided
virtualcocos2d::CCTexture2D*getTexture()
No description provided
virtualvoidsetTexture()
No description provided
virtualvoidsetBlendFunc()
No description provided
virtualcocos2d::ccBlendFuncgetBlendFunc()
No description provided
virtual_::GLubytegetOpacity()
No description provided
virtualvoidsetOpacity(
_::GLubyteopacity
)
No description provided
virtualvoidsetOpacityModifyRGB(
boolbValue
)
No description provided
virtualboolisOpacityModifyRGB()
No description provided
voidresumeStroke()
No description provided
voidstopStroke()
No description provided
voidenableRepeatMode()
No description provided
boolgetDontOpacityFade()const
No description provided
voidsetDontOpacityFade()
No description provided
floatgetM_fMaxSeg()const
No description provided
voidsetM_fMaxSeg()
No description provided
voidsetStroke()
No description provided
voidupdateFade()
No description provided
boolisFastMode()

When fast mode is enabled, new points are added faster but with lower precision

voidsetFastMode(
boolbFastMode
)
No description provided
boolisStartingPositionInitialized()
No description provided
voidsetStartingPositionInitialized(
boolbStartingPositionInitialized
)
No description provided
Fields0
Protected member functions0
Protected fields23
boolm_bFastMode
;
No description provided
boolm_bStartingPositionInitialized
;
No description provided
boolm_bStroke
;
No description provided
;

texture used for the motion streak

;
No description provided
floatm_fStroke
;
No description provided
floatm_fFadeDelta
;
No description provided
floatm_fMinSeg
;
No description provided
uintm_uMaxPoints
;
No description provided
uintm_uNuPoints
;
No description provided
uintm_uPreviousNuPoints
;
No description provided
cocos2d::CCPoint*m_pPointVertexes
;

Pointers

float*m_pPointState
;
No description provided
;
No description provided
_::GLubyte*m_pColorPointer
;
No description provided
cocos2d::ccTex2F*m_pTexCoords
;
No description provided
boolm_bRepeatMode
;
No description provided
floatm_fRepeatSpeed
;
No description provided
floatm_fRepeatTime
;
No description provided
boolm_idk
;
No description provided
floatm_fMaxSeg
;
No description provided
boolm_bDontOpacityFade
;
No description provided
cocos2d::CCPointm_tPositionR
;
No description provided