LabelAtlas Class Reference

#import <LabelAtlas.h>

Inherits AtlasNode.

Collaboration diagram for LabelAtlas:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Protected Attributes

NSString * string
 string to render
char mapStartChar
 the first char in the charmap


Detailed Description

LabelAtlas is a subclass of AtlasNode.

It can be as a replacement of Label since it is MUCH faster that it.

LabelAtlas versus Label:


Member Function Documentation

- (id) initWithString: (NSString *)  string
charMapFile: (NSString *)  charmapfile
itemWidth: (int)  w
itemHeight: (int)  h
startCharMap: (char)  c 

initializes the LabelAtlas 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 LabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas

- (void) setString: (NSString *)  string  

changes the string to render.


Member Data Documentation

- (char) mapStartChar [protected]

the first char in the charmap

- (NSString*) string [protected]

string to render


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

Generated on Tue Jun 9 10:39:38 2009 for cocos2d for iPhone 0.7.3 by  doxygen 1.5.8