1{ Parsed from SceneKit.framework SCNSceneSource.h } 2 3 4{$ifdef TYPES} 5type 6 SCNSceneSourcePtr = ^SCNSceneSource; 7{$endif} 8 9{$ifdef EXTERNAL_SYMBOLS} 10var 11 SCNSceneSourceAssetContributorsKey: NSString; cvar; external; 12 SCNSceneSourceAssetCreatedDateKey: NSString; cvar; external; 13 SCNSceneSourceAssetModifiedDateKey: NSString; cvar; external; 14 SCNSceneSourceAssetUpAxisKey: NSString; cvar; external; 15 SCNSceneSourceAssetUnitKey: NSString; cvar; external; 16 SCNSceneSourceAssetAuthoringToolKey: NSString; cvar; external; 17 SCNSceneSourceAssetAuthorKey: NSString; cvar; external; 18 SCNSceneSourceAssetUnitNameKey: NSString; cvar; external; 19 SCNSceneSourceAssetUnitMeterKey: NSString; cvar; external; 20 SCNSceneSourceCreateNormalsIfAbsentKey: NSString; cvar; external; 21 SCNSceneSourceCheckConsistencyKey: NSString; cvar; external; 22 SCNSceneSourceFlattenSceneKey: NSString; cvar; external; 23 SCNSceneSourceUseSafeModeKey: NSString; cvar; external; 24 SCNSceneSourceAssetDirectoryURLsKey: NSString; cvar; external; 25 SCNSceneSourceOverrideAssetURLsKey: NSString; cvar; external; 26 SCNSceneSourceStrictConformanceKey: NSString; cvar; external; 27 SCNSceneSourceConvertUnitsToMetersKey: NSString { available in 10_10, NA }; cvar; external; 28 SCNSceneSourceConvertToYUpKey: NSString { available in 10_10, NA }; cvar; external; 29 SCNSceneSourceAnimationImportPolicyKey: NSString { available in 10_10, 8_0 }; cvar; external; 30 SCNSceneSourceAnimationImportPolicyPlay: NSString { available in 10_10, 8_0 }; cvar; external; 31 SCNSceneSourceAnimationImportPolicyPlayRepeatedly: NSString { available in 10_10, 8_0 }; cvar; external; 32 SCNSceneSourceAnimationImportPolicyDoNotPlay: NSString { available in 10_10, 8_0 }; cvar; external; 33 SCNSceneSourceAnimationImportPolicyPlayUsingSceneTimeBase: NSString { available in 10_10, 8_0 }; cvar; external; 34 SCNDetailedErrorsKey: NSString; cvar; external; 35 SCNConsistencyElementIDErrorKey: NSString; cvar; external; 36 SCNConsistencyElementTypeErrorKey: NSString; cvar; external; 37 SCNConsistencyLineNumberErrorKey: NSString; cvar; external; 38{$endif} 39 40{$ifdef TYPES} 41const 42 SCNConsistencyInvalidURIError = 1000; 43 SCNConsistencyInvalidCountError = 1001; 44 SCNConsistencyInvalidArgumentError = 1002; 45 SCNConsistencyMissingElementError = 1003; 46 SCNConsistencyMissingAttributeError = 1004; 47 SCNConsistencyXMLSchemaValidationError = 1005; 48 49type 50 SCNSceneSourceStatus = NSInteger; 51 SCNSceneSourceStatusPtr = ^SCNSceneSourceStatus; 52 53const 54 SCNSceneSourceStatusError = -1; 55 SCNSceneSourceStatusParsing = 4; 56 SCNSceneSourceStatusValidating = 8; 57 SCNSceneSourceStatusProcessing = 12; 58 SCNSceneSourceStatusComplete = 16; 59 60type 61 SCNSceneSourceStatusHandler = OpaqueCBlock; 62{$endif} 63 64{$ifdef CLASSES} 65 66type 67 SCNSceneSource = objcclass external (NSObject) 68 private 69 _reserved: id; 70 public 71 class function sceneSourceWithURL_options (url: NSURL; options: NSDictionary): instancetype; message 'sceneSourceWithURL:options:'; 72 class function sceneSourceWithData_options (data: NSData; options: NSDictionary): instancetype; message 'sceneSourceWithData:options:'; 73 function initWithURL_options (url: NSURL; options: NSDictionary): id; message 'initWithURL:options:'; 74 function initWithData_options (data: NSData; options: NSDictionary): id; message 'initWithData:options:'; 75 function url: NSURL; message 'url'; 76 function data: NSData; message 'data'; 77 function sceneWithOptions_statusHandler (options: NSDictionary; statusHandler: SCNSceneSourceStatusHandler): SCNScene; message 'sceneWithOptions:statusHandler:'; 78 function sceneWithOptions_error (options: NSDictionary; error: NSErrorPtr): SCNScene; message 'sceneWithOptions:error:'; 79 function propertyForKey (key: NSString): id; message 'propertyForKey:'; 80 function entryWithIdentifier_withClass (uid: NSString; entryClass: pobjc_class): id; message 'entryWithIdentifier:withClass:'; 81 function identifiersOfEntriesWithClass (entryClass: pobjc_class): NSArray; message 'identifiersOfEntriesWithClass:'; 82 function entriesPassingTest (predicate: OpaqueCBlock): NSArray; message 'entriesPassingTest:'; { available in 10_9, 8_0 } 83 end; 84{$endif} 85 86