#import <CCAtlasNode.h>
Inherits CCNode, CCRGBAProtocol-p, and CCTextureProtocol-p.
Inherited by CCLabelAtlas, and CCTileMapAtlas.

Public Member Functions | |
| (id) | - initWithTileFile:tileWidth:tileHeight:itemsToRender: |
| (void) | - updateAtlasValues |
Static Public Member Functions | |
| (id) | + atlasWithTileFile:tileWidth:tileHeight:itemsToRender: |
Properties | |
| CCTextureAtlas * | textureAtlas |
| ccBlendFunc | blendFunc |
| GLubyte | opacity |
| ccColor3B | color |
CCAtlasNode is a subclass of CCNode that implements the CCRGBAProtocol and CCTextureProtocol protocol
It knows how to render a TextureAtlas object. If you are going to render a TextureAtlas consider subclassing CCAtlasNode (or a subclass of CCAtlasNode)
All features from CCNode are valid, plus the following features:
Definition at line 39 of file CCAtlasNode.h.
| + (id) atlasWithTileFile: | (NSString *) | tile | ||
| tileWidth: | (int) | w | ||
| tileHeight: | (int) | h | ||
| itemsToRender: | (int) | c | ||
creates a CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render
| - (id) initWithTileFile: | (NSString *) | tile | ||
| tileWidth: | (int) | w | ||
| tileHeight: | (int) | h | ||
| itemsToRender: | (int) | c | ||
initializes an CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render
| - (void) updateAtlasValues |
updates the Atlas (indexed vertex array). Shall be overriden in subclasses
- (ccBlendFunc) blendFunc [read, write, assign] |
conforms to CCTextureProtocol protocol
Definition at line 62 of file CCAtlasNode.h.
- (ccColor3B) color [read, write, assign] |
conforms to CCRGBAProtocol protocol
Definition at line 67 of file CCAtlasNode.h.
- (GLubyte) opacity [read, write, assign] |
conforms to CCRGBAProtocol protocol
Definition at line 65 of file CCAtlasNode.h.
- (CCTextureAtlas*) textureAtlas [read, write, retain] |
conforms to CCTextureProtocol protocol
Definition at line 59 of file CCAtlasNode.h.