Public Member Functions | Static Public Member Functions

CCLabelAtlas Class Reference

#import "CCLabelAtlas.h"

Inherits CCAtlasNode, and CCLabelProtocol-p.

Collaboration diagram for CCLabelAtlas:
[legend]

List of all members.

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:

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.


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 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.

Deprecated:
Will be removed in 1.0.1. Use "labelWithString:" instead
+ (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


The documentation for this class was generated from the following file: