mirror of https://github.com/axmolengine/axmol.git
27 lines
911 B
Plaintext
27 lines
911 B
Plaintext
|
|
class CCTextureAtlas : public CCObject
|
|
{
|
|
unsigned int getTotalQuads();
|
|
unsigned int getCapacity();
|
|
|
|
void setTexture(CCTexture2D* val);
|
|
CCTexture2D* getTexture();
|
|
|
|
void setQuads(ccV3F_C4B_T2F_Quad* val);
|
|
ccV3F_C4B_T2F_Quad* getQuads();
|
|
|
|
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);
|
|
void drawNumberOfQuads(unsigned int n, unsigned int start);
|
|
|
|
void drawQuads();
|
|
|
|
static CCTextureAtlas* textureAtlasWithFile(const char* file , unsigned int capacity);
|
|
static CCTextureAtlas* textureAtlasWithTexture(CCTexture2D *texture, unsigned int capacity);
|
|
};
|