Public Member Functions | Static Public Member Functions | Properties

CCLabelBMFont Class Reference

#import "CCLabelBMFont.h"

Inherits CCSpriteBatchNode, CCLabelProtocol-p, and CCRGBAProtocol-p.

Inherited by CCBitmapFontAtlas.

Collaboration diagram for CCLabelBMFont:
[legend]

List of all members.

Public Member Functions

(void) - createFontChars
(id) - initWithString:fntFile:

Static Public Member Functions

(id) + bitmapFontAtlasWithString:fntFile:
(id) + labelWithString:fntFile:
(void) + purgeCachedData

Properties

ccColor3B color
GLubyte opacity

Detailed Description

CCLabelBMFont is a subclass of CCSpriteBatchNode

Features:

Limitations:

CCLabelBMFont implements the protocol CCLabelProtocol, like CCLabel and CCLabelAtlas. CCLabelBMFont has the flexibility of CCLabel, the speed of CCLabelAtlas and all the features of CCSprite. If in doubt, use CCLabelBMFont instead of CCLabelAtlas / CCLabel.

Supported editors:

Since:
v0.8

Member Function Documentation

+ (id) bitmapFontAtlasWithString: (NSString *)  string
fntFile: (NSString *)  DEPRECATED_ATTRIBUTE 

creates a BMFont label with an initial string and the FNT file

Deprecated:
Will be removed in 1.0.1. Use "labelWithString" instead.
- (void) createFontChars  

updates the font chars based on the string to render

- (id) initWithString: (NSString *)  string
fntFile: (NSString *)  fntFile 

init a BMFont label with an initial string and the FNT file

+ (id) labelWithString: (NSString *)  string
fntFile: (NSString *)  fntFile 

creates a BMFont label with an initial string and the FNT file

+ (void) purgeCachedData  

Purges the cached data. Removes from memory the cached configurations and the atlas name dictionary.

Since:
v0.99.3

Property Documentation

- (ccColor3B) color [read, write, assign]

conforms to CCRGBAProtocol protocol

- (GLubyte) opacity [read, write, assign]

conforms to CCRGBAProtocol protocol


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