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
-
textureAtlas
conforms to CCTextureProtocol protocol
property -
blendFunc
conforms to CCTextureProtocol protocol
property -
color
conforms to CCRGBAProtocol protocol
property -
quadsToDraw
how 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
-
– updateAtlasValues
updates the Atlas (indexed vertex array). Shall be overridden in subclasses
Other Methods
-
opacity
conforms to CCRGBAProtocol protocol
property
Properties
blendFunc
conforms to CCTextureProtocol protocol
@property (nonatomic, readwrite) ccBlendFunc blendFunc
Declared In
CCAtlasNode.h
color
conforms to CCRGBAProtocol protocol
@property (nonatomic, readwrite) ccColor3B color
Declared In
CCAtlasNode.h
opacity
conforms to CCRGBAProtocol protocol
@property (nonatomic, readwrite) GLubyte opacity
Declared In
CCAtlasNode.h
Class 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)c
Declared In
CCAtlasNode.h
Instance 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)c
Declared In
CCAtlasNode.h
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
- (id)initWithTileFile:(NSString *)tile tileWidth:(NSUInteger)w tileHeight:(NSUInteger)h itemsToRender:(NSUInteger)c
Declared In
CCAtlasNode.h