Repository navigation
Beta 1 Mac changes for ModelIO, SpriteKit, MediaPlayer #1681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,6 +113,15 @@ interface MDLAsset : NSCopying | |
| [Wrap ("GetComponent (new Protocol (type))")] | ||
| IMDLComponent GetComponent (Type type); | ||
|
|
||
| [iOS (10,3), TV (10,2), Mac (10,12,4)] | ||
| [Export ("objectForKeyedSubscript:")] | ||
| [return: NullAllowed] | ||
| IMDLComponent GetObject (Protocol key); | ||
|
|
||
| [iOS (10,3), TV (10,2), Mac (10,12,4)] | ||
| [Export ("setObject:forKeyedSubscript:")] | ||
| void SetObject ([NullAllowed] IMDLComponent obj, Protocol key); | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Check with @VincentDondain (or his PR) IIRC there was a reason for those not being there
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was about to comment: see #1601 (comment) |
||
| [iOS (10,0)] | ||
| [Mac (10,12)] | ||
| [TV (10,0)] | ||
|
|
@@ -1088,6 +1097,15 @@ interface MDLObject : MDLNamed | |
| [Static] | ||
| [Export ("objectWithSCNNode:bufferAllocator:")] | ||
| MDLObject FromNode (SCNNode node, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator); | ||
|
|
||
| [iOS (10,3), TV (10,2), Mac (10,12,4)] | ||
| [Export ("objectForKeyedSubscript:")] | ||
| [return: NullAllowed] | ||
| IMDLComponent GetObject (Protocol key); | ||
|
|
||
| [iOS (10,3), TV (10,2), Mac (10,12,4)] | ||
| [Export ("setObject:forKeyedSubscript:")] | ||
| void SetObject ([NullAllowed] IMDLComponent obj, Protocol key); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| } | ||
|
|
||
| [iOS (9,0), Mac (10,11, onlyOn64 : true)] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -295,11 +295,13 @@ partial interface SKNode : NSCoding, NSCopying { | |
| [Export ("obstaclesFromSpriteTextures:accuracy:")] | ||
| GKPolygonObstacle[] ObstaclesFromSpriteTextures (SKNode[] sprites, float accuracy); | ||
|
|
||
| #if !XAMCORE_4_0 | ||
| [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] | ||
| [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] | ||
| [iOS (9,0),Mac(10,11)] | ||
| [Export ("attributeValues", ArgumentSemantic.Copy)] | ||
| NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; } | ||
|
|
||
| #if !XAMCORE_4_0 | ||
| [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] | ||
| [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")] | ||
| [iOS (9,0),Mac(10,11)] | ||
|
|
@@ -383,6 +385,10 @@ partial interface SKEffectNode : SKWarpable { | |
| [Export ("shader", ArgumentSemantic.Retain)] | ||
| SKShader Shader { get; set; } | ||
|
|
||
| [iOS (10,0), Mac (10, 12)] | ||
| [Export ("attributeValues", ArgumentSemantic.Copy)] | ||
| NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; } | ||
|
|
||
| #if XAMCORE_4_0 | ||
| [iOS (9,0), Mac(10,11)] | ||
| [Export ("valueForAttributeNamed:")] | ||
|
|
@@ -730,13 +736,17 @@ partial interface SKSpriteNode : SKWarpable { | |
| [Export ("scaleToSize:")] | ||
| void ScaleTo (CGSize size); | ||
|
|
||
| [iOS (10,0), Mac (10, 12)] | ||
| [Export ("attributeValues", ArgumentSemantic.Copy)] | ||
| NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; } | ||
|
|
||
| #if XAMCORE_4_0 | ||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We check those are runtime so, in general ours are better than Apple. |
||
| [Export ("valueForAttributeNamed:")] | ||
| [return: NullAllowed] | ||
| SKAttributeValue GetValue (string key); | ||
|
|
||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| [Export ("setValue:forAttributeNamed:")] | ||
| void SetValue (SKAttributeValue value, string key); | ||
| #endif | ||
|
|
@@ -964,13 +974,17 @@ partial interface SKEmitterNode { | |
| [Export ("particleRenderOrder", ArgumentSemantic.Assign)] | ||
| SKParticleRenderOrder ParticleRenderOrder { get; set; } | ||
|
|
||
| [iOS (10,0), Mac (10, 12)] | ||
| [Export ("attributeValues", ArgumentSemantic.Copy)] | ||
| NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; } | ||
|
|
||
| #if XAMCORE_4_0 | ||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| [Export ("valueForAttributeNamed:")] | ||
| [return: NullAllowed] | ||
| SKAttributeValue GetValue (string key); | ||
|
|
||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| [Export ("setValue:forAttributeNamed:")] | ||
| void SetValue (SKAttributeValue value, string key); | ||
| #endif | ||
|
|
@@ -1093,13 +1107,17 @@ partial interface SKShapeNode { | |
| [Export ("lineLength")] | ||
| nfloat LineLength { get; } | ||
|
|
||
| [iOS (10,0), Mac (10, 12)] | ||
| [Export ("attributeValues", ArgumentSemantic.Copy)] | ||
| NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; } | ||
|
|
||
| #if XAMCORE_4_0 | ||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| [Export ("valueForAttributeNamed:")] | ||
| [return: NullAllowed] | ||
| SKAttributeValue GetValue (string key); | ||
|
|
||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| [Export ("setValue:forAttributeNamed:")] | ||
| void SetValue (SKAttributeValue value, string key); | ||
| #endif | ||
|
|
@@ -3048,13 +3066,17 @@ interface SKTileMapNode : NSCopying, NSCoding | |
| SKTileMapNode[] FromTileSet (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, GKNoiseMap noiseMap, NSNumber[] thresholds); | ||
| #endif | ||
|
|
||
| [iOS (10,0), Mac (10, 12)] | ||
| [Export ("attributeValues", ArgumentSemantic.Copy)] | ||
| NSDictionary<NSString, SKAttributeValue> AttributeValues { get; set; } | ||
|
|
||
| #if XAMCORE_4_0 | ||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| [Export ("valueForAttributeNamed:")] | ||
| [return: NullAllowed] | ||
| SKAttributeValue GetValue (string key); | ||
|
|
||
| [iOS (9,0), Mac(10,11)] | ||
| [iOS (10,0), Mac(10,12)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| [Export ("setValue:forAttributeNamed:")] | ||
| void SetValue (SKAttributeValue value, string key); | ||
| #endif | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor no spaces between the versions for consistency (: