CCAtlasNode Class Reference
| Inherits from | CCNodeRGBA : CCNode : NSObject |
| Conforms to | CCRGBAProtocol CCTextureProtocol |
| Declared in | CCAtlasNode.h |
Overview
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 sub-classing CCAtlasNode (or a subclass of CCAtlasNode)
All features from CCNode are valid, plus the following features: – opacity and RGB colors
Tasks
Other Methods
-
textureAtlasconforms to CCTextureProtocol protocol
property -
blendFuncconforms to CCTextureProtocol protocol
property -
colorconforms to CCRGBAProtocol protocol
property -
quadsToDrawhow many quads to draw
property -
+ atlasWithTileFile:tileWidth:tileHeight:itemsToRender:creates a CCAtlasNode with an Atlas file the width and height of each item measured in points and the quantity of items to render
-
– initWithTileFile:tileWidth:tileHeight:itemsToRender:initializes an CCAtlasNode with an Atlas file the width and height of each item measured in points and the quantity of items to render
-
– initWithTexture:tileWidth:tileHeight:itemsToRender:initializes an CCAtlasNode with a texture the width and height of each item measured in points and the quantity of items to render
-
– updateAtlasValuesupdates the Atlas (indexed vertex array). Shall be overridden in subclasses
Other Methods
-
opacityconforms to CCRGBAProtocol protocol
property
Properties
blendFunc
conforms to CCTextureProtocol protocol
@property (nonatomic, readwrite) ccBlendFunc blendFuncDeclared In
CCAtlasNode.hcolor
conforms to CCRGBAProtocol protocol
@property (nonatomic, readwrite) ccColor3B colorDeclared In
CCAtlasNode.hopacity
conforms to CCRGBAProtocol protocol
@property (nonatomic, readwrite) GLubyte opacityDeclared In
CCAtlasNode.hClass Methods
atlasWithTileFile:tileWidth:tileHeight:itemsToRender:
creates a CCAtlasNode with an Atlas file the width and height of each item measured in points and the quantity of items to render
+ (id)atlasWithTileFile:(NSString *)tile tileWidth:(NSUInteger)w tileHeight:(NSUInteger)h itemsToRender:(NSUInteger)cDeclared In
CCAtlasNode.hInstance Methods
initWithTexture:tileWidth:tileHeight:itemsToRender:
initializes an CCAtlasNode with a texture the width and height of each item measured in points and the quantity of items to render
- (id)initWithTexture:(CCTexture2D *)texture tileWidth:(NSUInteger)w tileHeight:(NSUInteger)h itemsToRender:(NSUInteger)cDeclared In
CCAtlasNode.hinitWithTileFile:tileWidth:tileHeight:itemsToRender:
initializes an CCAtlasNode with an Atlas file the width and height of each item measured in points and the quantity of items to render
- (id)initWithTileFile:(NSString *)tile tileWidth:(NSUInteger)w tileHeight:(NSUInteger)h itemsToRender:(NSUInteger)cDeclared In
CCAtlasNode.h