Public Member Functions | Static Public Member Functions | Properties

CCBitmapFontAtlas Class Reference

#import <CCBitmapFontAtlas.h>

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

Collaboration diagram for CCBitmapFontAtlas:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Properties

GLubyte opacity
ccColor3B color

Detailed Description

CCBitmapFontAtlas is a subclass of CCSpriteSheet.

Features:

Limitations:

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

Supported editors:

Since:
v0.8

Definition at line 136 of file CCBitmapFontAtlas.h.


Member Function Documentation

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

creates a bitmap font altas with an initial string and the FNT file

- (void) createFontChars  

updates the font chars based on the string to render

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

init a bitmap font altas 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

Definition at line 159 of file CCBitmapFontAtlas.h.

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

conforms to CCRGBAProtocol protocol

Definition at line 157 of file CCBitmapFontAtlas.h.


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

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1