MotionStreak. Creates a trailing path.
Class CCMotionStreak
#include <Geode/cocos/misc_nodes/CCMotionStreak.h>
classCCMotionStreak:publiccocos2d::CCNodeRGBA,publiccocos2d::CCTextureProtocol{ ... }
Examples0
Public static methods2
staticcocos2d::CCMotionStreak*create(floatfade,floatminSeg,floatstroke,,charconst*path)
creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture filename
staticcocos2d::CCMotionStreak*create(floatfade,floatminSeg,floatstroke,,cocos2d::CCTexture2D*texture)
creates and initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color, texture
Public member functions28
boolinitWithFade(floatfade,floatminSeg,floatstroke,,charconst*path)
initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture filename
boolinitWithFade(floatfade,floatminSeg,floatstroke,,cocos2d::CCTexture2D*texture)
initializes a motion streak with fade in seconds, minimum segments, stroke’s width, color and texture
voidtintWithColor(cocos2d::ccColor3Bcolors)
color used for the tint
voidreset()
Remove all living segments of the ribbon
virtualvoidsetPosition(cocos2d::CCPointconst&position)
Override super methods
virtualvoiddraw()
No description provided
virtualcocos2d::CCTexture2D*getTexture()
No description provided
virtualvoidsetTexture(cocos2d::CCTexture2D*texture)
No description provided
virtualvoidsetBlendFunc(cocos2d::ccBlendFuncblendFunc)
No description provided
virtualcocos2d::ccBlendFuncgetBlendFunc()
No description provided
virtualGLubytegetOpacity()
No description provided
virtualboolisOpacityModifyRGB()
No description provided
voidresumeStroke()
No description provided
voidstopStroke()
No description provided
boolisFastMode()
When fast mode is enabled, new points are added faster but with lower precision
boolisStartingPositionInitialized()
No description provided
floatgetM_fMaxSeg()const
No description provided
boolgetDontOpacityFade()const
No description provided
Fields23
boolm_bFastMode;
No description provided
boolm_bStartingPositionInitialized;
No description provided
boolm_bStroke;
No description provided
cocos2d::CCTexture2D*m_pTexture;
texture used for the motion streak
cocos2d::ccBlendFuncm_tBlendFunc;
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
cocos2d::ccVertex2F*m_pVertices;
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