From: Daekwang Ryu Date: Thu, 21 Oct 2021 03:49:12 +0000 (+0900) Subject: [NUI] ACR of GLView X-Git-Tag: accepted/tizen/unified/20231205.024657~1261 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c606a35d32ef6211d263cfc4f9c82352a1c0540;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] ACR of GLView Make public of GLView class. --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/GLView.cs b/src/Tizen.NUI/src/public/BaseComponents/GLView.cs index fc91f51..fc69606 100644 --- a/src/Tizen.NUI/src/public/BaseComponents/GLView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/GLView.cs @@ -11,8 +11,7 @@ namespace Tizen.NUI.BaseComponents /// GLView creates a context, a surface, and a render thread. /// The render thread invokes user's callbacks. /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public class GLView : View { private GLInitializeDelegate glInitializeCallback; @@ -24,8 +23,7 @@ namespace Tizen.NUI.BaseComponents /// /// Type of callback to initialize OpenGLES. /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public delegate void GLInitializeDelegate(); /// @@ -33,15 +31,13 @@ namespace Tizen.NUI.BaseComponents /// If the return value of this callback is not 0, the eglSwapBuffers() will be called. /// /// The return value is not 0, the eglSwapBuffers() will be called. - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public delegate int GLRenderFrameDelegate(); /// /// Type of callback to clean up GL resource. /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public delegate void GLTerminateDelegate(); /// @@ -49,8 +45,7 @@ namespace Tizen.NUI.BaseComponents /// /// The resized width size of the GLView /// The resized height size of the GLView - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public delegate void ViewResizeDelegate(int w, int h); internal GLView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) @@ -61,8 +56,7 @@ namespace Tizen.NUI.BaseComponents /// Creates an initialized GLView. /// /// The format of the color buffer - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public GLView(ColorFormat colorFormat) : this(Interop.GLView.New((int)colorFormat), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -71,30 +65,24 @@ namespace Tizen.NUI.BaseComponents /// /// Enumeration for the color format of the color buffer /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public enum ColorFormat { /// /// 8 red bits, 8 green bits, 8 blue bits /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] RGB888 = 0, /// /// 8 red bits, 8 green bits, 8 blue bits, alpha 8 bits /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] RGBA8888 } /// /// Gets or sets the rendering mode of the GLView. /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public GLRenderingMode RenderingMode { get @@ -116,8 +104,7 @@ namespace Tizen.NUI.BaseComponents /// The callback function for GL initialization /// The callback function to render the frame /// The callback function to clean up GL resources - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public void RegisterGLCallbacks(GLInitializeDelegate glInit, GLRenderFrameDelegate glRenderFrame, GLTerminateDelegate glTerminate) { glInitializeCallback = glInit; @@ -147,8 +134,7 @@ namespace Tizen.NUI.BaseComponents /// When GLView is resized, the callback is invoked and it passes the width and height. /// /// The resize callback function - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public void SetResizeCallback(ViewResizeDelegate callback) { viewResizeCallback = callback; @@ -166,8 +152,7 @@ namespace Tizen.NUI.BaseComponents /// The bit of MSAA /// The GLES version /// True if the config was successfully set, false otherwise. - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public bool SetGraphicsConfig(bool depth, bool stencil, int msaa, GLESVersion version) { bool ret = Interop.GLView.GlViewSetGraphicsConfig(SwigCPtr, depth, stencil, msaa, (int)version); @@ -178,8 +163,7 @@ namespace Tizen.NUI.BaseComponents /// /// Renders once more, even when paused. /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public void RenderOnce() { Interop.GLView.GlViewRenderOnce(SwigCPtr); diff --git a/src/Tizen.NUI/src/public/Common/NUIConstants.cs b/src/Tizen.NUI/src/public/Common/NUIConstants.cs index 82fb478..5353b9b 100755 --- a/src/Tizen.NUI/src/public/Common/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/Common/NUIConstants.cs @@ -1946,12 +1946,10 @@ namespace Tizen.NUI } /// - /// This Enumeration is used the GLES version for EGL configuration.
- /// If the device can not support GLES version 3.0 over, the version will be chosen with GLES version 2.0.
- /// It is for GLWindow and GLView.
+ /// This Enumeration is used the GLES version for EGL configuration. + /// It is for GLWindow and GLView. ///
- /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public enum GLESVersion { /// @@ -1970,8 +1968,7 @@ namespace Tizen.NUI /// This Enumeration is used to choose the rendering mode. /// It is for GLWindow and GLView. /// - /// 9 - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10 public enum GLRenderingMode { ///