mirror of https://github.com/axmolengine/axmol.git
41 lines
832 B
Plaintext
41 lines
832 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;
|
|
|
|
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 );
|