From dd1f2a4918ff2fc2017c941060240341cfaadf80 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Tue, 15 Aug 2017 08:29:33 -0400 Subject: [PATCH] [SceneKit] basic work (#2483) --- src/SceneKit/Defs.cs | 66 ++++++++++++++++++++++++++++-- src/scenekit.cs | 5 +++ tests/introspection/ApiTypoTest.cs | 1 + 3 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/SceneKit/Defs.cs b/src/SceneKit/Defs.cs index b84ab9c224..3e44c9cfa3 100644 --- a/src/SceneKit/Defs.cs +++ b/src/SceneKit/Defs.cs @@ -42,7 +42,10 @@ namespace XamCore.SceneKit { [Native] public enum SCNTransparencyMode : nint { AOne, - RgbZero + RgbZero, + SingleLayer = 2, + DualLayer = 3, + Default = AOne, } [Watch (3,0)] @@ -306,7 +309,8 @@ namespace XamCore.SceneKit { Subtract = 2, Multiply = 3, Screen = 4, - Replace = 5 + Replace = 5, + Max = 6, } [Watch (3,0)] @@ -321,7 +325,12 @@ namespace XamCore.SceneKit { ShowLightInfluences = 1 << 2, ShowLightExtents = 1 << 3, ShowPhysicsFields = 1 << 4, - ShowWireframe = 1 << 5 + ShowWireframe = 1 << 5, + RenderAsWireframe = 1 << 6, + ShowSkeletons = 1 << 7, + ShowCreases = 1 << 8, + ShowConstraints = 1 << 9, + ShowCameras = 1 << 10, } [Watch (3,0)] @@ -356,4 +365,55 @@ namespace XamCore.SceneKit { Fixed, Movable } + + [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Native] + public enum SCNColorMask : nint + { + None = 0, + Red = 1 << 3, + Green = 1 << 2, + Blue = 1 << 1, + Alpha = 1 << 0, + All = 15, + } + + [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Native] + public enum SCNInteractionMode : nint + { + Fly, + OrbitTurntable, + OrbitAngleMapping, + OrbitCenteredArcball, + OrbitArcball, + Pan, + Truck, + } + + [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Native] + public enum SCNFillMode : nuint + { + Fill = 0, + Lines = 1, + } + + [NoWatch, NoTV, Mac (10,13), iOS (11,0)] + [Native] + public enum SCNTessellationSmoothingMode : nint + { + None = 0, + PNTriangles, + Phong, + } + [Watch (4,0), TV (11,0), Mac (10,13), iOS (11,0)] + [Native] + public enum SCNHitTestSearchMode : nint + { + Closest = 0, + All = 1, + Any = 2, + } + } diff --git a/src/scenekit.cs b/src/scenekit.cs index 48c9ee469c..ae96b65004 100644 --- a/src/scenekit.cs +++ b/src/scenekit.cs @@ -782,6 +782,10 @@ namespace XamCore.SceneKit { [TV (10, 0), Mac (10, 12), iOS (10, 0)] [Field ("SCNHitTestOptionCategoryBitMask")] NSString OptionCategoryBitMaskKey { get; } + + [Watch (4, 0), TV (11, 0), Mac (10, 13), iOS (11, 0)] + [Field ("SCNHitTestOptionSearchMode")] + NSString OptionSearchModeKey { get; } } [Watch (3,0)] @@ -1226,6 +1230,7 @@ namespace XamCore.SceneKit { bool IgnoreChildNodes { get; set; } bool IgnoreHiddenNodes { get; set; } SCNNode RootNode { get; set; } + SCNHitTestSearchMode OptionSearchMode { get; } } [Watch (3,0)] diff --git a/tests/introspection/ApiTypoTest.cs b/tests/introspection/ApiTypoTest.cs index 25af16e441..6e4e4822ad 100644 --- a/tests/introspection/ApiTypoTest.cs +++ b/tests/introspection/ApiTypoTest.cs @@ -98,6 +98,7 @@ namespace Introspection "Automounted", "Autoredirect", "Aliasable", + "Arcball", "Backface", "Bancaire", // french "Bancaires", // french