From: Eunki, Hong Date: Fri, 27 Jan 2023 07:41:42 +0000 (+0900) Subject: [NUI][Scene3D][API10] FBO MultiSamplingLevel Property for SceneView X-Git-Tag: submit/tizen_7.0/20230130.055157~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d619e3474e8ce127157273a4288c85d8ff7a5df9;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI][Scene3D][API10] FBO MultiSamplingLevel Property for SceneView Backporting PR of #4937 Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI.Scene3D/src/internal/Interop/Interop.SceneView.cs b/src/Tizen.NUI.Scene3D/src/internal/Interop/Interop.SceneView.cs index ac244a3..5167345 100755 --- a/src/Tizen.NUI.Scene3D/src/internal/Interop/Interop.SceneView.cs +++ b/src/Tizen.NUI.Scene3D/src/internal/Interop/Interop.SceneView.cs @@ -78,6 +78,12 @@ namespace Tizen.NUI.Scene3D [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_SceneView_IsUsingFramebuffer")] [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] public static extern bool IsUsingFramebuffer(global::System.Runtime.InteropServices.HandleRef sceneView); + + [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_SceneView_SetFramebufferMultiSamplingLevel")] + public static extern void SetFramebufferMultiSamplingLevel(global::System.Runtime.InteropServices.HandleRef sceneView, uint multiSamplingLevel); + + [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_SceneView_GetFramebufferMultiSamplingLevel")] + public static extern uint GetFramebufferMultiSamplingLevel(global::System.Runtime.InteropServices.HandleRef sceneView); } } } diff --git a/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs b/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs index 4058de9..40289ef 100755 --- a/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs +++ b/src/Tizen.NUI.Scene3D/src/public/Controls/SceneView.cs @@ -154,6 +154,28 @@ namespace Tizen.NUI.Scene3D } /// + /// Set/Get the Framebuffer's MultiSamplingLevel. + /// Only has effects if UseFramebuffer is true, and Framebuffer MultiSampling is supported. + /// Default is 0. + /// + /// + /// Getter didn't consider Framebuffer MultiSampling is supported or not. + /// + // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + [EditorBrowsable(EditorBrowsableState.Never)] + public uint FramebufferMultiSamplingLevel + { + set + { + SetFramebufferMultiSamplingLevel(value); + } + get + { + return GetFramebufferMultiSamplingLevel(); + } + } + + /// /// Adds a Camera to the SceneView at the end of the camera list of SceneView. /// The Camera can be used as a selected camera to render the scene by using or /// @@ -397,6 +419,19 @@ namespace Tizen.NUI.Scene3D return result; } + internal void SetFramebufferMultiSamplingLevel(uint multiSamplingLevel) + { + Interop.SceneView.SetFramebufferMultiSamplingLevel(SwigCPtr, multiSamplingLevel); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal uint GetFramebufferMultiSamplingLevel() + { + uint result = Interop.SceneView.GetFramebufferMultiSamplingLevel(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return result; + } + /// /// Set the ImageBasedLight ScaleFactor. ///