#import <Foundation/Foundation.h>
#import <SpriteKit/SKTexture.h>
SK_EXPORT @interface SKTextureAtlas : NSObject <NSCoding>
+ (SKTextureAtlas *)atlasNamed:(NSString *)name;
- (SKTexture *)textureNamed:(NSString *)name;
+ (void)preloadTextureAtlases:(NSArray *)textureAtlases withCompletionHandler:(void(^) (void))completionHandler;
- (void)preloadWithCompletionHandler:(void(^)(void))completionHandler;
@property (SK_NONATOMIC_IOSONLY, readonly) NSArray *textureNames;
@end
+ (SKTextureAtlas *)atlasNamed:(NSString *)name
参数是纹理集的名字,返回的是一个纹理集。
+ (SKTexture *)textureNamed:(NSString *)name
这两个是最常用的,其他的以后再介绍。
转载请注明来自大锐哥的博客:http://prevention.iteye.com
原文:http://blog.csdn.net/prevention/article/details/18940997