2013-04-02 17:52:08 +08:00
|
|
|
class CCMotionStreak : public CCNodeRGBA
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2013-07-08 11:34:31 +08:00
|
|
|
static CCMotionStreak* create(float fade, float minSeg, float stroke, Color3B color, const char* path);
|
|
|
|
static CCMotionStreak* create(float fade, float minSeg, float stroke, Color3B color, CCTexture2D* texture);
|
2012-04-26 09:34:42 +08:00
|
|
|
|
2013-07-08 11:34:31 +08:00
|
|
|
void tintWithColor(Color3B colors);
|
2012-04-26 09:34:42 +08:00
|
|
|
void reset();
|
|
|
|
|
|
|
|
void setPosition(CCPoint& position);
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
CCTexture2D* getTexture(void);
|
2012-04-26 09:34:42 +08:00
|
|
|
void setTexture(CCTexture2D *texture);
|
2013-07-08 11:34:31 +08:00
|
|
|
void setBlendFunc(BlendFunc blendFunc);
|
|
|
|
BlendFunc getBlendFunc(void);
|
|
|
|
void setColor(const Color3B& color);
|
|
|
|
const Color3B& getColor(void);
|
2012-04-26 09:34:42 +08:00
|
|
|
GLubyte getOpacity(void);
|
|
|
|
void setOpacity(GLubyte opacity);
|
2012-06-15 17:26:11 +08:00
|
|
|
void setOpacityModifyRGB(bool bValue);
|
|
|
|
bool isOpacityModifyRGB(void);
|
|
|
|
bool isFastMode();
|
|
|
|
void setFastMode(bool bFastMode);
|
|
|
|
bool isStartingPositionInitialized();
|
|
|
|
void setStartingPositionInitialized(bool bStartingPositionInitialized);
|
|
|
|
};
|