#import "CCLabelBMFont.h"
Inherits CCSpriteBatchNode, CCLabelProtocol-p, and CCRGBAProtocol-p.
Inherited by CCBitmapFontAtlas.
Public Member Functions | |
(void) | - createFontChars |
(id) | - initWithString:fntFile: |
Static Public Member Functions | |
(id) | + bitmapFontAtlasWithString:fntFile: |
(id) | + labelWithString:fntFile: |
(void) | + purgeCachedData |
Properties | |
ccColor3B | color |
GLubyte | opacity |
CCLabelBMFont is a subclass of CCSpriteBatchNode
Features:
Limitations:
CCLabelBMFont implements the protocol CCLabelProtocol, like CCLabel and CCLabelAtlas. CCLabelBMFont has the flexibility of CCLabel, the speed of CCLabelAtlas and all the features of CCSprite. If in doubt, use CCLabelBMFont instead of CCLabelAtlas / CCLabel.
Supported editors:
+ (id) bitmapFontAtlasWithString: | (NSString *) | string | ||
fntFile: | (NSString *) | DEPRECATED_ATTRIBUTE | ||
creates a BMFont label with an initial string and the FNT file
- (void) createFontChars |
updates the font chars based on the string to render
- (id) initWithString: | (NSString *) | string | ||
fntFile: | (NSString *) | fntFile | ||
init a BMFont label with an initial string and the FNT file
+ (id) labelWithString: | (NSString *) | string | ||
fntFile: | (NSString *) | fntFile | ||
creates a BMFont label with an initial string and the FNT file
+ (void) purgeCachedData |
Purges the cached data. Removes from memory the cached configurations and the atlas name dictionary.
- (ccColor3B) color [read, write, assign] |
conforms to CCRGBAProtocol protocol
- (GLubyte) opacity [read, write, assign] |
conforms to CCRGBAProtocol protocol