Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / packages / cocoaint / src / spritekit / SKTexture.inc
Size: Mime:
{ Parsed from SpriteKit.framework SKTexture.h }


{ Types from SKTexture }
{$ifdef TYPES}

{$endif}


{$ifdef TYPES}
type
  SKTexturePtr = ^SKTexture;
{$endif}

{$ifdef TYPES}
type
  SKTextureFilteringMode = NSInteger;
  SKTextureFilteringModePtr = ^SKTextureFilteringMode;

const
  SKTextureFilteringNearest = 0;
  SKTextureFilteringLinear = 1;
{$endif}

{$ifdef CLASSES}

type
  SKTexture = objcclass external (NSObject, NSCopyingProtocol, NSCodingProtocol)
  public
    class function textureWithImageNamed (name: NSString): instancetype; message 'textureWithImageNamed:';
    class function textureWithRect_inTexture (rect: CGRect; texture: SKTexture): instancetype; message 'textureWithRect:inTexture:';
    class function textureVectorNoiseWithSmoothness_size (smoothness: CGFloat; size: CGSize): instancetype; message 'textureVectorNoiseWithSmoothness:size:'; { available in 10_10, 8_0 }
    class function textureNoiseWithSmoothness_size_grayscale (smoothness: CGFloat; size: CGSize; grayscale: ObjCBOOL): instancetype; message 'textureNoiseWithSmoothness:size:grayscale:'; { available in 10_10, 8_0 }
    class function textureWithCGImage (image: CGImageRef): instancetype; message 'textureWithCGImage:';
    {$if defined(TARGET_OS_IPHONE)}
    class function textureWithImage (image: UIImage): instancetype; message 'textureWithImage:';
    {$else}
    class function textureWithImage (image: NSImage): instancetype; message 'textureWithImage:';
    {$endif}
    class function textureWithData_size (pixelData: NSData; size: CGSize): instancetype; message 'textureWithData:size:';
    class function textureWithData_size_flipped (pixelData: NSData; size: CGSize; flipped: ObjCBOOL): instancetype; message 'textureWithData:size:flipped:';
    class function textureWithData_size_rowLength_alignment (pixelData: NSData; size: CGSize; rowLength: cuint; alignment: cuint): instancetype; message 'textureWithData:size:rowLength:alignment:';
    function textureByApplyingCIFilter (filter: CIFilter): instancetype; message 'textureByApplyingCIFilter:';
    function textureByGeneratingNormalMap: instancetype; message 'textureByGeneratingNormalMap'; { available in 10_10, 8_0 }
    function textureByGeneratingNormalMapWithSmoothness_contrast (smoothness: CGFloat; contrast: CGFloat): instancetype; message 'textureByGeneratingNormalMapWithSmoothness:contrast:'; { available in 10_10, 8_0 }
    function textureRect: CGRect; message 'textureRect';
    function size: CGSize; message 'size';
    procedure setFilteringMode(newValue: SKTextureFilteringMode); message 'setFilteringMode:';
    function filteringMode: SKTextureFilteringMode; message 'filteringMode';
    procedure setUsesMipmaps(newValue: ObjCBOOL); message 'setUsesMipmaps:';
    function usesMipmaps: ObjCBOOL; message 'usesMipmaps';
    class procedure preloadTextures_withCompletionHandler (textures: NSArray; completionHandler: OpaqueCBlock); message 'preloadTextures:withCompletionHandler:';
    procedure preloadWithCompletionHandler (completionHandler: OpaqueCBlock); message 'preloadWithCompletionHandler:';

    { Adopted protocols }
    function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
    procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
    function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
  end;
{$endif}