axmol/tools/tolua++/CCTextureAtlas.pkg

58 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
namespace cocos2d {
class CCTextureAtlas : public CCObject
{
unsigned int getTotalQuads();
unsigned int getCapacity();
CCTexture2D* getTexture();
void setTexture(CCTexture2D* val);
/** Quads that are going to be rendered */
void setQuads(ccV3F_C4B_T2F_Quad* val);
ccV3F_C4B_T2F_Quad* getQuads();
CCTextureAtlas();
~CCTextureAtlas();
char * description();
static CCTextureAtlas * textureAtlasWithFile(const char* file , unsigned int capacity);
bool initWithFile(const char* file, unsigned int capacity);
static CCTextureAtlas * textureAtlasWithTexture(CCTexture2D *texture, unsigned int capacity);
bool initWithTexture(CCTexture2D *texture, unsigned int capacity);
void updateQuad(ccV3F_C4B_T2F_Quad* quad, unsigned int index);
void insertQuad(ccV3F_C4B_T2F_Quad* quad, unsigned int index);
void insertQuadFromIndex(unsigned int fromIndex, unsigned int newIndex);
void removeQuadAtIndex(unsigned int index);
void removeAllQuads();
bool resizeCapacity(unsigned int n);
void drawNumberOfQuads(unsigned int n);
/** draws all the Atlas's Quads
*/
void drawQuads();
};
}//namespace cocos2d