2011-06-14 14:31:25 +08:00
|
|
|
|
2013-04-02 17:52:08 +08:00
|
|
|
class CCAtlasNode : public CCNodeRGBA
|
2012-02-02 14:26:38 +08:00
|
|
|
{
|
2012-08-10 18:14:04 +08:00
|
|
|
CCTextureAtlas* getTextureAtlas();
|
|
|
|
void setTextureAtlas(CCTextureAtlas* atlas);
|
|
|
|
|
|
|
|
CCTexture2D* getTexture(void);
|
2012-02-02 14:26:38 +08:00
|
|
|
void setTexture(CCTexture2D *texture);
|
|
|
|
|
2012-08-10 18:14:04 +08:00
|
|
|
ccColor3B getColor();
|
|
|
|
void setColor(ccColor3B color);
|
|
|
|
|
|
|
|
unsigned int getQuadsToDraw();
|
|
|
|
void setQuadsToDraw(unsigned int quadsToDraw);
|
|
|
|
|
|
|
|
GLubyte getOpacity();
|
|
|
|
void setOpacity(GLubyte opacity);
|
|
|
|
|
|
|
|
void updateAtlasValues();
|
|
|
|
bool isOpacityModifyRGB();
|
|
|
|
void setOpacityModifyRGB(bool isOpacityModifyRGB);
|
|
|
|
|
|
|
|
static CCAtlasNode * create(const char* tile, unsigned int tileWidth, unsigned int tileHeight, unsigned int itemsToRender);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|