#import <CCBitmapFontAtlas.h>
Inherits CCSpriteSheet, CCLabelProtocol-p, and CCRGBAProtocol-p.

Public Member Functions | |
| (id) | - initWithString:fntFile: |
| (void) | - createFontChars |
Static Public Member Functions | |
| (void) | + purgeCachedData |
| (id) | + bitmapFontAtlasWithString:fntFile: |
Properties | |
| GLubyte | opacity |
| ccColor3B | color |
CCBitmapFontAtlas is a subclass of CCSpriteSheet.
Features:
Limitations:
CCBitmapFontAtlas implements the protocol CCLabelProtocol, like CCLabel and CCLabelAtlas. CCBitmapFontAtlas has the flexibility of CCLabel, the speed of CCLabelAtlas and all the features of CCSprite. If in doubt, use CCBitmapFontAtlas instead of CCLabelAtlas / CCLabel.
Supported editors:
Definition at line 136 of file CCBitmapFontAtlas.h.
| + (id) bitmapFontAtlasWithString: | (NSString *) | string | ||
| fntFile: | (NSString *) | fntFile | ||
creates a bitmap font altas 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 bitmap font altas 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
Definition at line 159 of file CCBitmapFontAtlas.h.
- (GLubyte) opacity [read, write, assign] |
conforms to CCRGBAProtocol protocol
Definition at line 157 of file CCBitmapFontAtlas.h.