#import "CCLabelAtlas.h"
Inherits CCAtlasNode, and CCLabelProtocol-p.
Public Member Functions | |
(id) | - initWithString:charMapFile:itemWidth:itemHeight:startCharMap: |
Static Public Member Functions | |
(id) | + labelAtlasWithString:charMapFile:itemWidth:itemHeight:startCharMap: |
(id) | + labelWithString:charMapFile:itemWidth:itemHeight:startCharMap: |
CCLabelAtlas is a subclass of CCAtlasNode.
It can be as a replacement of CCLabel since it is MUCH faster.
CCLabelAtlas versus CCLabel:
A more flexible class is CCBitmapFontAtlas. It supports variable width characters and it also has a nice editor.
- (id) initWithString: | (NSString *) | string | ||
charMapFile: | (NSString *) | charmapfile | ||
itemWidth: | (int) | w | ||
itemHeight: | (int) | h | ||
startCharMap: | (char) | c | ||
initializes the CCLabelAtlas with a string, a char map file(the atlas), the width and height in points of each element and the starting char of the atlas
+ (id) labelAtlasWithString: | (NSString *) | string | ||
charMapFile: | (NSString *) | charmapfile | ||
itemWidth: | (int) | w | ||
itemHeight: | (int) | h | ||
startCharMap: | (char) | DEPRECATED_ATTRIBUTE | ||
creates the CCLabelAtlas with a string, a char map file(the atlas), the width and height of each element in points and the starting char of the atlas.
+ (id) labelWithString: | (NSString *) | string | ||
charMapFile: | (NSString *) | charmapfile | ||
itemWidth: | (int) | w | ||
itemHeight: | (int) | h | ||
startCharMap: | (char) | c | ||
creates the CCLabelAtlas with a string, a char map file(the atlas), the width and height of each element in points and the starting char of the atlas