axmol/tools/tolua++/CCLabelBMFont.pkg

41 lines
832 B
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
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;
class CCBMFontConfiguration : public CCObject
2012-01-20 19:08:21 +08:00
{
2011-06-14 14:31:25 +08:00
char * description();
2012-01-20 19:08:21 +08:00
static CCBMFontConfiguration * configurationWithFNTFile(const char *FNTfile);
};
2011-06-14 14:31:25 +08:00
class CCLabelBMFont : public CCSpriteBatchNode
2011-06-14 14:31:25 +08:00
{
2012-01-20 19:08:21 +08:00
void createFontChars();
2011-06-14 14:31:25 +08:00
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);
2012-01-20 19:08:21 +08:00
};
2011-06-14 14:31:25 +08:00
CCBMFontConfiguration * FNTConfigLoadFile( const char *file );
void FNTConfigRemoveCache( void );