|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCLabelAtlas.h>
Class Methods | |
| (id) | + labelWithString:charMapFile:itemWidth:itemHeight:startCharMap: |
| (id) | + labelWithString:fntFile: |
| Class Methods inherited from CCAtlasNode | |
| (id) | + atlasWithTileFile:tileWidth:tileHeight:itemsToRender: |
| Class Methods inherited from CCNode | |
| (id) | + node |
Protected Attributes | |
| NSString * | string_ |
| NSUInteger | mapStartChar_ |
| Protected Attributes inherited from CCAtlasNode | |
| CCTextureAtlas * | textureAtlas_ |
| NSUInteger | itemsPerRow_ |
| NSUInteger | itemsPerColumn_ |
| NSUInteger | itemWidth_ |
| NSUInteger | itemHeight_ |
| NSUInteger | quadsToDraw_ |
| ccBlendFunc | blendFunc_ |
| GLubyte | opacity_ |
| ccColor3B | color_ |
| ccColor3B | colorUnmodified_ |
| BOOL | opacityModifyRGB_ |
| GLint | uniformColor_ |
| Protected Attributes inherited from CCNode | |
| float | rotationX_ |
| float | rotationY_ |
| float | scaleX_ |
| float | scaleY_ |
| float | vertexZ_ |
| CGPoint | position_ |
| float | skewX_ |
| float | skewY_ |
| CGPoint | anchorPointInPoints_ |
| CGPoint | anchorPoint_ |
| CGSize | contentSize_ |
| CGAffineTransform | transform_ |
| CGAffineTransform | inverse_ |
| CCCamera * | camera_ |
| CCGridBase * | grid_ |
| NSInteger | zOrder_ |
| CCArray * | children_ |
| CCNode * | parent_ |
| NSInteger | tag_ |
| void * | userData_ |
| id | userObject_ |
| CCGLProgram * | shaderProgram_ |
| ccGLServerState | glServerState_ |
| NSUInteger | orderOfArrival_ |
| CCScheduler * | scheduler_ |
| CCActionManager * | actionManager_ |
| BOOL | isRunning_ |
| BOOL | isTransformDirty_ |
| BOOL | isInverseDirty_ |
| BOOL | visible_ |
| BOOL | ignoreAnchorPointForPosition_ |
| BOOL | isReorderChildDirty_ |
Additional Inherited Members | |
| Properties inherited from CCAtlasNode | |
| CCTextureAtlas * | textureAtlas |
| ccBlendFunc | blendFunc |
| GLubyte | opacity |
| ccColor3B | color |
| NSUInteger | quadsToDraw |
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.
| - (id) initWithString: | (NSString *) | string | |
| charMapFile: | (NSString *) | charmapfile | |
| itemWidth: | (NSUInteger) | w | |
| itemHeight: | (NSUInteger) | h | |
| startCharMap: | (NSUInteger) | firstElement | |
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) initWithString: | (NSString *) | string | |
| fntFile: | (NSString *) | fontFile | |
initializes the CCLabelAtlas with a string and a configuration file
| - (id) initWithString: | (NSString *) | theString | |
| texture: | (CCTexture2D *) | texture | |
| itemWidth: | (NSUInteger) | w | |
| itemHeight: | (NSUInteger) | h | |
| startCharMap: | (NSUInteger) | c | |
initializes the CCLabelAtlas with a string, a texture, the width and height in points of each element and the starting char of the atlas
| + (id) labelWithString: | (NSString *) | string | |
| charMapFile: | (NSString *) | charmapfile | |
| itemWidth: | (NSUInteger) | w | |
| itemHeight: | (NSUInteger) | h | |
| startCharMap: | (NSUInteger) | firstElement | |
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
| + (id) labelWithString: | (NSString *) | string | |
| fntFile: | (NSString *) | fontFile | |
creates the CCLabelAtlas with a string and a configuration file