From: Seungho Baek Date: Wed, 28 May 2025 10:42:39 +0000 (+0900) Subject: [NUI] Add RemoveTexture and RemoveSampler in TextureSet X-Git-Tag: submit/tizen/20250605.072332~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d003cffff82af427f7624f95e463518a9dee870e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add RemoveTexture and RemoveSampler in TextureSet Signed-off-by: Seungho Baek --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.TextureSet.cs b/src/Tizen.NUI/src/internal/Interop/Interop.TextureSet.cs index f05e2968f..d4ba165e2 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.TextureSet.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.TextureSet.cs @@ -30,12 +30,18 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextureSet_SetTexture")] public static extern void SetTexture(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextureSet_RemoveTexture")] + public static extern void RemoveTexture(global::System.Runtime.InteropServices.HandleRef textureSet, uint index); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextureSet_GetTexture")] public static extern global::System.IntPtr GetTexture(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextureSet_SetSampler")] public static extern void SetSampler(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextureSet_RemoveSampler")] + public static extern void RemoveSampler(global::System.Runtime.InteropServices.HandleRef textureSet, uint index); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextureSet_GetSampler")] public static extern global::System.IntPtr GetSampler(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); diff --git a/src/Tizen.NUI/src/public/Rendering/TextureSet.cs b/src/Tizen.NUI/src/public/Rendering/TextureSet.cs index a1d5584dd..0c977554b 100755 --- a/src/Tizen.NUI/src/public/Rendering/TextureSet.cs +++ b/src/Tizen.NUI/src/public/Rendering/TextureSet.cs @@ -60,6 +60,17 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Removes the texture at position "index". + /// + /// The position in the texture set of the texture. + [EditorBrowsable(EditorBrowsableState.Never)] + public void RemoveTexture(uint index) + { + Interop.TextureSet.RemoveTexture(SwigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + /// /// Gets the image at position "index". /// @@ -95,6 +106,17 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Removes the sampler at position "index". + /// + /// The position in the texture set of the sampler. + [EditorBrowsable(EditorBrowsableState.Never)] + public void RemoveSampler(uint index) + { + Interop.TextureSet.RemoveSampler(SwigCPtr, index); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + /// /// Sets the sampler to be used by the image at position "index". ///