cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
Public Member Functions | Static Public Member Functions
CCLabelAtlas Class Reference

#import <CCLabelAtlas.h>

Inheritance diagram for CCLabelAtlas:
Inheritance graph
[legend]
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) + labelWithString:charMapFile:itemWidth:itemHeight:startCharMap:
(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 CCLabelBMFont. It supports variable width characters and it also has a nice editor.

Definition at line 42 of file CCLabelAtlas.h.


Member Function Documentation

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

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


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

cocos2d for iPhone API Reference - Generated using Doxygen 1.7.4