#import <AtlasSpriteManager.h>
Inherits CocosNode.
Public Member Functions | |
| (id) | - initWithTexture:capacity: |
| (id) | - initWithFile:capacity: |
| (AtlasSprite *) | - createSpriteWithRect: |
| (void) | - removeChildAtIndex:cleanup: |
| (void) | - removeChild:cleanup: |
Static Public Member Functions | |
| (id) | + spriteManagerWithTexture: |
| (id) | + spriteManagerWithTexture:capacity: |
| (id) | + spriteManagerWithFile: |
| (id) | + spriteManagerWithFile:capacity: |
Properties | |
| TextureAtlas * | atlas |
Limitations:
| - (AtlasSprite*) createSpriteWithRect: | (CGRect) | rect |
creates an sprite with a rect in the AtlasSpriteManage
| - (id) initWithFile: | (NSString *) | fileImage | ||
| capacity: | (NSUInteger) | capacity | ||
initializes an AtlasSpriteManager with a file image (.png, .jpeg, .pvr, etc)
| - (id) initWithTexture: | (Texture2D *) | tex | ||
| capacity: | (NSUInteger) | capacity | ||
initializes an AtlasSpriteManager with a texture2d and capacity
| - (void) removeChild: | (AtlasSprite *) | sprite | ||
| cleanup: | (BOOL) | doCleanup | ||
removes a child given a reference. It will also cleanup the running actions depending on the cleanup parameter.
| - (void) removeChildAtIndex: | (NSUInteger) | index | ||
| cleanup: | (BOOL) | doCleanup | ||
removes a child given a certain index. It will also cleanup the running actions depending on the cleanup parameter.
| + (id) spriteManagerWithFile: | (NSString *) | fileImage |
creates an AtlasSpriteManager with a file image (.png, .jpeg, .pvr, etc)
| + (id) spriteManagerWithFile: | (NSString *) | fileImage | ||
| capacity: | (NSUInteger) | capacity | ||
creates an AtlasSpriteManager with a file image (.png, .jpeg, .pvr, etc) and capacity
| + (id) spriteManagerWithTexture: | (Texture2D *) | tex |
creates an AtlasSpriteManager with a texture2d
| + (id) spriteManagerWithTexture: | (Texture2D *) | tex | ||
| capacity: | (NSUInteger) | capacity | ||
creates an AtlasSpriteManager with a texture2d and capacity
- (TextureAtlas*) atlas [read, assign] |
returns the TextureAtlas that is used
1.5.8