2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCLabelAtlas : public CCAtlasNode
|
|
|
|
{
|
|
|
|
void updateAtlasValues();
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void setString(const char *label);
|
2013-07-04 12:50:17 +08:00
|
|
|
const char* getString(void) const;
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
CCTexture2D* getTexture(void);
|
|
|
|
void setTexture(CCTexture2D *texture);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-06-15 11:46:51 +08:00
|
|
|
static CCLabelAtlas* create(const char *label, const char *charMapFile, unsigned int itemWidth, unsigned int itemHeight, unsigned int startCharMap);
|
|
|
|
static CCLabelAtlas* create(const char *sring, const char *fntFile);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|