Skip to content

SceneKit iOS xcode9 beta2

Miguel de Icaza edited this page Aug 21, 2017 · 4 revisions

#SceneKit.framework

diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h	2017-05-19 02:22:15.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h	2017-06-12 18:12:46.000000000 -0400
@@ -384,17 +384,20 @@
 @property(nonatomic, readonly) NSInteger bytesPerIndex;
 
 /*!
- @property pointSize, in local space.
+ @property pointSize
+ @abstract Specifies the size of the point in local space. Defaults to 1
  */
 @property(nonatomic) CGFloat pointSize API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
 
 /*!
  @property minimumPointScreenSpaceRadius
+ @abstract Specifies the minimum size in screen-space (in pixel). Defaults to 1
  */
 @property(nonatomic) CGFloat minimumPointScreenSpaceRadius API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
 
 /*!
  @property maximumPointScreenSpaceRadius
+ @abstract Specifies the maximum size in screen-space (in pixel). Defaults to 1
  */
 @property(nonatomic) CGFloat maximumPointScreenSpaceRadius API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
 
@@ -419,6 +422,18 @@
 @interface SCNGeometryTessellator : NSObject <NSCopying, NSSecureCoding>
 
 /*!
+ @property tessellationFactorScale
+ @abstract Specifies the scale factor applied to the per-patch tessellation factors. Defaults to 1.
+ */
+@property (nonatomic) CGFloat tessellationFactorScale;
+
+/*!
+ @property tessellationPartitionMode
+ @abstract Specifies the tessellation partition mode. Defaults to MTLTessellationPartitionModePow2.
+ */
+@property (nonatomic) MTLTessellationPartitionMode tessellationPartitionMode;
+
+/*!
  @property adaptive
  @abstract Specifies if the tessellation should be uniform or adaptive. Defaults to NO.
  */
@@ -431,12 +446,6 @@
 @property (nonatomic, getter=isScreenSpace) BOOL screenSpace;
 
 /*!
- @property tessellationFactorScale
- @abstract Specifies the scale factor applied to the per-patch tessellation factors. Defaults to 1.
- */
-@property (nonatomic) CGFloat tessellationFactorScale;
-
-/*!
  @property edgeTessellationFactor
  @abstract Specifies the edge tessellation factor. Defaults to 1.
  @discussion This has no effect for adaptive subdivision
@@ -458,12 +467,6 @@
 @property (nonatomic) CGFloat maximumEdgeLength;
 
 /*!
- @property tessellationPartitionMode
- @abstract Specifies the tessellation partition mode. Defaults to MTLTessellationPartitionModePow2.
- */
-@property (nonatomic) MTLTessellationPartitionMode tessellationPartitionMode;
-
-/*!
  @property smoothingMode
  @abstract Defaults to SCNTessellationSmoothingModeNone.
  */
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h	2017-05-30 23:13:12.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h	2017-06-11 01:48:45.000000000 -0400
@@ -43,7 +43,7 @@
 
 /*! 
  @property contents
- @abstract Specifies the receiver's contents. This can be a color (NSColor, UIColor, CGColorRef), an image (NSImage, UIImage, CGImageRef), a layer (CALayer), a path (NSString or NSURL), a SpriteKit scene (SKScene), a texture (SKTexture, id<MTLTexture> or GLKTextureInfo), or a floating value between 0 and 1 (NSNumber) for metalness and roughness properties. In macOS 10.13, iOS 11.0, tvOS 11.0 and watchOS 4.0 AVCaptureDevice and AVPlayer are also supported. Animatable when set to a color.
+ @abstract Specifies the receiver's contents. This can be a color (NSColor, UIColor, CGColorRef), an image (NSImage, UIImage, CGImageRef), a layer (CALayer), a path (NSString or NSURL), a SpriteKit scene (SKScene), a texture (SKTexture, id<MTLTexture> or GLKTextureInfo), or a floating value between 0 and 1 (NSNumber) for metalness and roughness properties. AVCaptureDevice is supported on iOS 11.0 and AVPlayer is supported on macOS 10.13, iOS 11.0 and tvOS11.0. Animatable when set to a color.
  @discussion Setting the contents to an instance of SKTexture will automatically update the wrapS, wrapT, contentsTransform, minification, magnification and mip filters according to the SKTexture settings.
              When a cube map is expected (e.g. SCNMaterial.reflective, SCNScene.background, SCNScene.lightingEnvironment) you can use
                1. A horizontal strip image                          where `6 * image.height ==     image.width`
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMorpher.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMorpher.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMorpher.h	2017-05-30 23:11:55.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNMorpher.h	2017-06-12 18:12:46.000000000 -0400
@@ -32,7 +32,7 @@
 
 /*!
  @method setWeight:forTargetAtIndex:
- @abstract Sets the weight for the target at the specified index. Animatable implicitly or explicitly with the keyPath "weights[index]" or "weights[targetName]" (targetName is the name of the target geometry).
+ @abstract Sets the weight for the target at the specified index. Animatable implicitly or explicitly with the keyPath "weights[index]" or "weights["targetName"]" (targetName is the name of the target geometry).
  */
 - (void)setWeight:(CGFloat)weight forTargetAtIndex:(NSUInteger)targetIndex;
 
@@ -41,7 +41,19 @@
  @abstract Retrieves the weight for the target at the specified index.
  */
 - (CGFloat)weightForTargetAtIndex:(NSUInteger)targetIndex;
-
+    
+/*!
+ @method setWeight:forTargetNamed:
+ @abstract Sets the weight for the target with the specified name (targetName is the name of the target geometry).
+ */
+- (void)setWeight:(CGFloat)weight forTargetNamed:(NSString *)targetName API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
+    
+/*!
+ @method weightForTargetNamed:
+ @abstract Retrieves the weight for the target with the specified name (targetName is the name of the target geometry).
+ */
+- (CGFloat)weightForTargetNamed:(NSString *)targetName API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
+    
 /*!
  @property calculationMode
  @abstract Specifies how the morph result is calculated by the receiver. Defaults to SCNMorpherCalculationModeNormalized.
@@ -59,22 +71,7 @@
  @abstract When set to YES the normals are not morphed but are recomputed after morphing the vertex instead. When set to NO, the morpher will morph the normals if the geometry targets have normals. Defaults to NO.
  */
 @property BOOL unifiesNormals API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
-
-/*!
- @property channelTargetWeights
- @abstract Specifies the number of target shapes per channel.
- @discussion Can be NULL if every channel contains only one target shape. Defaults to NULL.
- @seealso channelTargetWeights
- */
-@property (nonatomic, retain, nullable) NSArray<NSNumber *> *channelTargetCounts API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
-
-/*!
- @property channelTargetWeights
- @abstract the weights at which the (in-between) target shapes are placed (0..1).
- @discussion Can be NULL if every channel contains only one target shape.
- */
-@property (nonatomic, retain, nullable) NSArray<NSNumber *> *channelTargetWeights API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0));
-
+    
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h	2017-05-19 02:34:32.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h	2017-06-11 01:58:29.000000000 -0400
@@ -602,17 +602,6 @@
 
 @end
 
-
-
-
-#if !defined(MAC_OS_X_VERSION_10_13) && !defined(SCN_SIMD_10_12_COMPATIBILITY)
-typedef struct {  vector_float4 vector; } simd_quatf;
-#define simd_float3 vector_float3
-#define simd_float4 vector_float4
-#define simd_float4x4 matrix_float4x4
-#define SCN_SIMD_10_12_COMPATIBILITY 1
-#endif
-
 @interface SCNNode (SIMD)
 
 /*!
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h	2017-05-25 07:28:26.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h	2017-06-11 02:40:39.000000000 -0400
@@ -281,10 +281,10 @@
 // Specifies the life span variation of particles. Animatable.
 @property(nonatomic) CGFloat particleLifeSpanVariation;
 
-// Specifies an optional system to spawn new particles when a particle die
+// Specifies an optional system to spawn new particles when a particle dies
 @property(nonatomic, retain, nullable) SCNParticleSystem *systemSpawnedOnDying;
 
-// Specifies an optional system to spawn new particles when a particle die
+// Specifies an optional system to spawn new particles when a particle dies
 @property(nonatomic, retain, nullable) SCNParticleSystem *systemSpawnedOnCollision;
 
 // Specifies an optional system to spawn new particles when a particle is alive
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneRenderer.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneRenderer.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneRenderer.h	2017-05-30 23:13:12.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneRenderer.h	2017-06-12 18:12:45.000000000 -0400
@@ -46,19 +46,19 @@
  @abstract Debug options.
  */
 typedef NS_OPTIONS(NSUInteger, SCNDebugOptions) {
-    SCNDebugOptionNone                                                                                = 0,
-    SCNDebugOptionShowPhysicsShapes                                                                   = 1 << 0, //show physics shape
-    SCNDebugOptionShowBoundingBoxes                                                                   = 1 << 1, //show object bounding boxes
-    SCNDebugOptionShowLightInfluences                                                                 = 1 << 2, //show objects's light influences
-    SCNDebugOptionShowLightExtents                                                                    = 1 << 3, //show light extents
-    SCNDebugOptionShowPhysicsFields                                                                   = 1 << 4, //show SCNPhysicsFields forces and extents
-    SCNDebugOptionShowWireframe                                                                       = 1 << 5, //show wireframe on top of objects
-    SCNDebugOptionRenderAsWireframe API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 6, //render objects as wireframe
-    SCNDebugOptionShowSkeletons     API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 7, //show skinning bones
-    SCNDebugOptionShowCreases       API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 8, //show subdivision creases
-    SCNDebugOptionShowConstraints   API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 9,  //show slider constraint
-    SCNDebugOptionShowCameras       API_AVAILABLE(macosx(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 10  //show cameras
-} API_AVAILABLE(macosx(10.11), ios(9.0));
+    SCNDebugOptionNone                                                                               = 0,
+    SCNDebugOptionShowPhysicsShapes                                                                  = 1 << 0, //show physics shape
+    SCNDebugOptionShowBoundingBoxes                                                                  = 1 << 1, //show object bounding boxes
+    SCNDebugOptionShowLightInfluences                                                                = 1 << 2, //show objects's light influences
+    SCNDebugOptionShowLightExtents                                                                   = 1 << 3, //show light extents
+    SCNDebugOptionShowPhysicsFields                                                                  = 1 << 4, //show SCNPhysicsFields forces and extents
+    SCNDebugOptionShowWireframe                                                                      = 1 << 5, //show wireframe on top of objects
+    SCNDebugOptionRenderAsWireframe API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 6, //render objects as wireframe
+    SCNDebugOptionShowSkeletons     API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 7, //show skinning bones
+    SCNDebugOptionShowCreases       API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 8, //show subdivision creases
+    SCNDebugOptionShowConstraints   API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 9,  //show slider constraint
+    SCNDebugOptionShowCameras       API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)) = 1 << 10  //show cameras
+} API_AVAILABLE(macos(10.11), ios(9.0));
 
 /*! @protocol SCNSceneRenderer
     @abstract Protocol adopted by the various renderers (SCNView, SCNLayer, SCNRenderer)
Clone this wiki locally