From 29ceb9d1ac26b91431a2481011092ca378a93049 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Tue, 25 Jul 2017 11:27:40 -0400 Subject: [PATCH 1/2] [arkit] Update for beta 4 --- src/arkit.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/arkit.cs b/src/arkit.cs index f95c8ad56fa..8401b2a6085 100644 --- a/src/arkit.cs +++ b/src/arkit.cs @@ -163,6 +163,10 @@ Matrix4 ProjectionMatrix { [Export ("projectionMatrixWithViewportSize:orientation:zNear:zFar:")] [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] Matrix4 GetProjectionMatrix (CGSize viewportSize, UIInterfaceOrientation orientation, nfloat zNear, nfloat zFar); + + [Export ("viewMatrixForOrientation:")] + [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] + Matrix4 GetViewMatrix (UIInterfaceOrientation orientation); } [iOS (11,0)] @@ -183,10 +187,10 @@ interface ARFrame : NSCopying { [Export ("anchors", ArgumentSemantic.Copy)] ARAnchor[] Anchors { get; } - [NullAllowed, Export ("lightEstimate", ArgumentSemantic.Copy)] + [NullAllowed, Export ("lightEstimate", ArgumentSemantic.Strong)] ARLightEstimate LightEstimate { get; } - [NullAllowed, Export ("rawFeaturePoints")] + [NullAllowed, Export ("rawFeaturePoints", ArgumentSemantic.Strong)] ARPointCloud RawFeaturePoints { get; } [Export ("hitTest:types:")] @@ -232,6 +236,9 @@ interface ARLightEstimate { [Export ("ambientIntensity")] nfloat AmbientIntensity { get; } + + [Export ("ambientColorTemperature")] + nfloat AmbientColorTemperature { get; } } [iOS (11,0)] From 33f8dd3bd1f31cfdd8dd502ad3681df59afd57fc Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Tue, 25 Jul 2017 15:47:28 -0400 Subject: [PATCH 2/2] [runtime] Add new signature --- runtime/bindings-generator.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/runtime/bindings-generator.cs b/runtime/bindings-generator.cs index 05549d4b1dc..914136e5509 100644 --- a/runtime/bindings-generator.cs +++ b/runtime/bindings-generator.cs @@ -1915,6 +1915,18 @@ static IEnumerable GetFunctionData () } ); + data.Add ( + new FunctionData { + Comment = " // Matrix4 func (/* UIInterfaceOrientation */ nint)", + Prefix = "simd__", + Variants = Variants.All, + ReturnType = Types.Matrix4f, + Parameters = new ParameterData[] { + new ParameterData { TypeData = Types.NInt }, + }, + } + ); + // We must expand functions with native types to their actual type as well. for (int i = data.Count - 1; i >= 0; i--) { if (!data [i].HasNativeType)