2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
class CCRibbon: public CCNode
|
|
|
|
{
|
2012-02-02 14:26:38 +08:00
|
|
|
void setTexture(CCTexture2D* val);
|
|
|
|
CCTexture2D* getTexture();
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void setTextureLength(float val);
|
|
|
|
float getTextureLength();
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void setBlendFunc(ccBlendFunc val);
|
|
|
|
ccBlendFunc getBlendFunc();
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void setColor(ccColor4B val);
|
|
|
|
ccColor4B getColor();
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void addPointAt(CCPoint location, float width);
|
|
|
|
float sideOfLine(CCPoint p, CCPoint l1, CCPoint l2);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCRibbon * create(float w, const char *path, float length, ccColor4B color, float fade);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|