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) 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)]