axmol/tools/tolua++/CCLabelBMFont.pkg

45 lines
894 B
Plaintext

struct _KerningHashElement;
typedef struct _BMFontDef {
unsigned int charID;
CCRect rect;
int xOffset;
int yOffset;
int xAdvance;
} ccBMFontDef;
typedef struct _BMFontPadding {
int left;
int top;
int right;
int bottom;
} ccBMFontPadding;
enum {
kCCBMFontMaxChars = 2048, //256,
};
class CCBMFontConfiguration : public CCObject
{
char * description();
static CCBMFontConfiguration * configurationWithFNTFile(const char *FNTfile);
};
class CCLabelBMFont : public CCSpriteBatchNode
{
void createFontChars();
void setString(const char *label);
const char* getString(void);
void setCString(const char *label);
static void purgeCachedData();
static CCLabelBMFont * labelWithString(const char *str, const char *fntFile);
};
CCBMFontConfiguration * FNTConfigLoadFile(const char *file);
void FNTConfigRemoveCache(void);