Class SKTexture

    • Constructor Detail

      • SKTexture

        public SKTexture()
      • SKTexture

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

        public SKTexture​(CGImage image)
      • SKTexture

        public SKTexture​(UIImage image)
      • SKTexture

        public SKTexture​(NSData pixelData,
                         CGSize size)
      • SKTexture

        public SKTexture​(NSData pixelData,
                         CGSize size,
                         boolean flipped)
      • SKTexture

        public SKTexture​(NSData pixelData,
                         CGSize size,
                         int rowLength,
                         int alignment)
      • SKTexture

        public SKTexture​(NSCoder decoder)
    • Method Detail

      • usesMipmaps

        public boolean usesMipmaps()
      • setUsesMipmaps

        public void setUsesMipmaps​(boolean v)
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • newTextureByApplyingCIFilter

        public SKTexture newTextureByApplyingCIFilter​(CIFilter filter)
      • newTextureByGeneratingNormalMap

        public SKTexture newTextureByGeneratingNormalMap()
        Since:
        Available in iOS 8.0 and later.
      • newTextureByGeneratingNormalMap

        public SKTexture newTextureByGeneratingNormalMap​(double smoothness,
                                                         double contrast)
        Since:
        Available in iOS 8.0 and later.
      • getTextureRect

        public CGRect getTextureRect()
      • CGImage

        public CGImage CGImage()
        Since:
        Available in iOS 9.0 and later.
      • preload

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

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

        protected static long create​(CGRect rect,
                                     SKTexture texture)
      • createVectorNoise

        public static SKTexture createVectorNoise​(double smoothness,
                                                  CGSize size)
        Since:
        Available in iOS 8.0 and later.
      • createNoise

        public static SKTexture createNoise​(double smoothness,
                                            CGSize size,
                                            boolean grayscale)
        Since:
        Available in iOS 8.0 and later.
      • create

        protected static long create​(CGImage image)
      • create

        protected static long create​(UIImage image)
      • create

        protected static long create​(NSData pixelData,
                                     CGSize size)
      • create

        protected static long create​(NSData pixelData,
                                     CGSize size,
                                     boolean flipped)
      • create

        protected static long create​(NSData pixelData,
                                     CGSize size,
                                     int rowLength,
                                     int alignment)
      • preloadTextures

        public static void preloadTextures​(NSArray<SKTexture> textures,
                                           java.lang.Runnable completionHandler)
      • init

        protected long init​(NSCoder decoder)