axmol/tools/tolua++/CCRibbon.pkg

47 lines
988 B
Plaintext

namespace cocos2d {
class CCRibbon: public CCNode
{
CCRibbon();
~CCRibbon();
void setTexture(CCTexture2D* val);
CCTexture2D* getTexture();
/** Texture lengths in pixels */
float getTextureLength();
void setTextureLength(float val);
void setBlendFunc(ccBlendFunc val);
ccBlendFunc getBlendFunc();
void setColor(ccColor4B val);
ccColor4B getColor();
static CCRibbon * ribbonWithWidth(float w, const char *path, float length, ccColor4B color, float fade);
bool initWithWidth(float w, const char *path, float length, ccColor4B color, float fade);
void addPointAt(CCPoint location, float width);
void update(ccTime delta);
float sideOfLine(CCPoint p, CCPoint l1, CCPoint l2);
void draw();
};
/** @brief object to hold ribbon segment data */
class CCRibbonSegment: public CCObject
{
CCRibbonSegment();
~CCRibbonSegment();
char * description();
bool init();
void reset();
void draw(float curTime, float fadeTime, ccColor4B color);
};
} // namespace cocos2d