SCNScene.inc 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. { Parsed from SceneKit.framework SCNScene.h }
  2. {$ifdef TYPES}
  3. type
  4. SCNScenePtr = ^SCNScene;
  5. SCNSceneExportDelegateProtocolPtr = ^SCNSceneExportDelegateProtocol;
  6. {$endif}
  7. {$ifdef TYPES}
  8. type
  9. SCNSceneExportProgressHandler = OpaqueCBlock;
  10. {$endif}
  11. {$ifdef EXTERNAL_SYMBOLS}
  12. var
  13. SCNSceneExportDestinationURL: NSString { available in 10_9, 8_0 }; cvar; external;
  14. SCNSceneStartTimeAttributeKey: NSString; cvar; external;
  15. SCNSceneEndTimeAttributeKey: NSString; cvar; external;
  16. SCNSceneFrameRateAttributeKey: NSString; cvar; external;
  17. SCNSceneUpAxisAttributeKey: NSString { available in 10_10, 8_0 }; cvar; external;
  18. {$endif}
  19. {$ifdef CLASSES}
  20. type
  21. SCNScene = objcclass external (NSObject, NSSecureCodingProtocol)
  22. private
  23. _reserved: id;
  24. public
  25. class function scene: instancetype; message 'scene';
  26. function rootNode: SCNNode; message 'rootNode';
  27. function physicsWorld: SCNPhysicsWorld; message 'physicsWorld';
  28. function attributeForKey (key: NSString): id; message 'attributeForKey:';
  29. procedure setAttribute_forKey (attribute: id; key: NSString); message 'setAttribute:forKey:';
  30. function background: SCNMaterialProperty; message 'background';
  31. class function sceneNamed (name: NSString): instancetype; message 'sceneNamed:'; { available in 10_9, 8_0 }
  32. class function sceneNamed_inDirectory_options (name: NSString; directory: NSString; options: NSDictionary): instancetype; message 'sceneNamed:inDirectory:options:'; { available in 10_10, 8_0 }
  33. class function sceneWithURL_options_error (url: NSURL; options: NSDictionary; error: NSErrorPtr): instancetype; message 'sceneWithURL:options:error:';
  34. function writeToURL_options_delegate_progressHandler (url: NSURL; options: NSDictionary; delegate: SCNSceneExportDelegateProtocol; progressHandler: SCNSceneExportProgressHandler): ObjCBOOL; message 'writeToURL:options:delegate:progressHandler:'; { available in 10_9, NA }
  35. procedure setFogStartDistance(newValue: CGFloat); message 'setFogStartDistance:';
  36. function fogStartDistance: CGFloat; message 'fogStartDistance';
  37. procedure setFogEndDistance(newValue: CGFloat); message 'setFogEndDistance:';
  38. function fogEndDistance: CGFloat; message 'fogEndDistance';
  39. procedure setFogDensityExponent(newValue: CGFloat); message 'setFogDensityExponent:';
  40. function fogDensityExponent: CGFloat; message 'fogDensityExponent';
  41. procedure setFogColor(newValue: id); message 'setFogColor:';
  42. function fogColor: id; message 'fogColor';
  43. procedure setPaused(newValue: ObjCBOOL); message 'setPaused:';
  44. function isPaused: ObjCBOOL; message 'isPaused';
  45. { Adopted protocols }
  46. procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
  47. function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
  48. class function supportsSecureCoding: ObjCBOOL; message 'supportsSecureCoding';
  49. end;
  50. {$endif}
  51. {$ifdef PROTOCOLS}
  52. type
  53. SCNSceneExportDelegateProtocol = objcprotocol external name 'SCNSceneExportDelegate' (NSObjectProtocol)
  54. optional
  55. function writeImage_withSceneDocumentURL_originalImageURL (image: NSImage; documentURL: NSURL; originalImageURL: NSURL): NSURL; message 'writeImage:withSceneDocumentURL:originalImageURL:'; { available in 10_9, NA }
  56. end;
  57. {$endif}