#import <AtlasNode.h>
Inherits CocosNode, CocosNodeOpacity-p, CocosNodeRGB-p, and CocosNodeSize-p.
Inherited by LabelAtlas, and TileMapAtlas.

Public Member Functions | |
| (id) | - initWithTileFile:tileWidth:tileHeight:itemsToRender: |
| (void) | - updateAtlasValues |
Static Public Member Functions | |
| (id) | + atlasWithTileFile:tileWidth:tileHeight:itemsToRender: |
Protected Attributes | |
| TextureAtlas * | textureAtlas |
| texture atlas | |
| int | itemsPerRow |
| chars per row | |
| int | itemsPerColumn |
| chars per column | |
| float | texStepX |
| texture coordinate x increment | |
| float | texStepY |
| texture coordinate y increment | |
| int | itemWidth |
| width of each char | |
| int | itemHeight |
| height of each char | |
Properties | |
| GLubyte | opacity |
| texture opacity | |
| GLubyte | r |
| texture color | |
It knows how to render a TextureAtlas object.
All features from CocosNode are valid, plus the following features:
| + (id) atlasWithTileFile: | (NSString *) | tile | ||
| tileWidth: | (int) | w | ||
| tileHeight: | (int) | h | ||
| itemsToRender: | (int) | c | ||
creates an AtlasNode 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 AtlasNode 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
- (int) itemHeight [protected] |
height of each char
- (int) itemsPerColumn [protected] |
chars per column
- (int) itemsPerRow [protected] |
chars per row
- (int) itemWidth [protected] |
width of each char
- (float) texStepX [protected] |
texture coordinate x increment
- (float) texStepY [protected] |
texture coordinate y increment
- (TextureAtlas*) textureAtlas [protected] |
texture atlas
- (GLubyte) opacity [read, write, assign] |
texture opacity
Conforms to CocosNodeOpacity and CocosNodeRGB protocol.
- (GLubyte) r [read, write, assign] |
texture color
1.5.8