CCLabelAtlas Class Reference

#import <CCLabelAtlas.h>

Inherits CCAtlasNode, and CCLabelProtocol-p.

Collaboration diagram for CCLabelAtlas:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithString:charMapFile:itemWidth:itemHeight:startCharMap:

Static Public Member Functions

(id) + labelAtlasWithString:charMapFile:itemWidth:itemHeight:startCharMap:

Detailed Description

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.

Definition at line 29 of file CCLabelAtlas.h.


Member Function Documentation

- (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 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)  c 

creates the CCLabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Properties Defines

cocos2d for iPhone 0.99.0