axmol/tools/tolua++/CCAtlasNode.pkg

29 lines
630 B
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
#include "CCNode.h"
#include "CCProtocols.h"
#include "ccTypes.h"
namespace cocos2d {
class CCTextureAtlas;
class CCAtlasNode : public CCNode, public CCRGBAProtocol, public CCTextureProtocol
{
CCAtlasNode();
2011-07-08 18:31:02 +08:00
static CCAtlasNode * atlasWithTileFile(const char* tile,unsigned int tileWidth, unsigned int tileHeight, unsigned int itemsToRender);
bool initWithTileFile(const char* tile, unsigned int tileWidth, unsigned int tileHeight, unsigned int itemsToRender);
2011-06-14 14:31:25 +08:00
void updateAtlasValues();
void draw();
CCTexture2D* getTexture(void);
void setTexture(CCTexture2D *texture);
};
}//namespace cocos2d