|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
#import <CCLabelAtlas.h>


Public Member Functions | |
| (id) | - initWithString:charMapFile:itemWidth:itemHeight:startCharMap: |
Static Public Member Functions | |
| (id) | + labelWithString:charMapFile:itemWidth:itemHeight:startCharMap: |
| (id) | + labelAtlasWithString: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 CCLabelBMFont. It supports variable width characters and it also has a nice editor.
Definition at line 42 of file CCLabelAtlas.h.
| - (id) initWithString: | (NSString *) | string | |
| charMapFile: | (NSString *) | charmapfile | |
| itemWidth: | (NSUInteger) | w | |
| itemHeight: | (NSUInteger) | h | |
| startCharMap: | (unsigned 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: | (NSUInteger) | w | |
| itemHeight: | (NSUInteger) | h | |
| startCharMap: | (unsigned 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: | (NSUInteger) | w | |
| itemHeight: | (NSUInteger) | h | |
| startCharMap: | (unsigned 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