Class SKTexture

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
SKMutableTexture

public class SKTexture
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • SKTexture

      public SKTexture()
    • SKTexture

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

      protected SKTexture​(NSObject.SkipInit skipInit)
    • SKTexture

      public SKTexture​(String name)
    • SKTexture

      public SKTexture​(CGRect rect, SKTexture texture)
    • 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 coder)
  • Method Details

    • getFilteringMode

      public SKTextureFilteringMode getFilteringMode()
    • setFilteringMode

      public void setFilteringMode​(SKTextureFilteringMode v)
    • 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()
    • newTextureByGeneratingNormalMap

      public SKTexture newTextureByGeneratingNormalMap​(double smoothness, double contrast)
    • getTextureRect

      public CGRect getTextureRect()
    • size

      public CGSize size()
    • CGImage

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

      public void preload​(Runnable completionHandler)
    • create

      protected static long create​(String name)
    • create

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

      public static SKTexture createVectorNoise​(double smoothness, CGSize size)
    • createNoise

      public static SKTexture createNoise​(double smoothness, CGSize size, boolean grayscale)
    • 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, Runnable completionHandler)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)