Class SKTextureAtlas

    • Constructor Detail

      • SKTextureAtlas

        public SKTextureAtlas()
      • SKTextureAtlas

        protected SKTextureAtlas​(NSObject.Handle h,
                                 long handle)
      • SKTextureAtlas

        public SKTextureAtlas​(java.lang.String name)
      • SKTextureAtlas

        public SKTextureAtlas​(NSCoder decoder)
      • SKTextureAtlas

        public SKTextureAtlas​(java.util.Map<java.lang.String,​?> textures)
        Constructs a new texture atlas object from the specified texture files.
        Parameters:
        properties - The keys of this map represent the texture names. The associated values can be of type String, NSURL or UIImage.
        Since:
        Available in iOS 8.0 and later.
    • Method Detail

      • getTextureNames

        public java.util.List<java.lang.String> getTextureNames()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • getTexture

        public SKTexture getTexture​(java.lang.String name)
      • preload

        public void preload​(java.lang.Runnable completionHandler)
      • create

        protected static long create​(java.lang.String name)
      • create

        protected static long create​(NSDictionary<NSString,​?> properties)
        Since:
        Available in iOS 8.0 and later.
      • preloadTextureAtlases

        public static void preloadTextureAtlases​(NSArray<SKTextureAtlas> textureAtlases,
                                                 java.lang.Runnable completionHandler)
      • preloadTextureAtlases

        public static void preloadTextureAtlases​(java.util.List<java.lang.String> atlasNames,
                                                 org.robovm.objc.block.VoidBlock2<NSError,​NSArray<SKTextureAtlas>> completionHandler)
        Since:
        Available in iOS 9.0 and later.
      • init

        protected long init​(NSCoder decoder)