[NUI] Add RemoveTexture and RemoveSampler in TextureSet
authorSeungho Baek <sbsh.baek@samsung.com>
Wed, 28 May 2025 10:42:39 +0000 (19:42 +0900)
committerChihun Jeong <50663828+ANZ1217@users.noreply.github.com>
Thu, 5 Jun 2025 07:18:42 +0000 (16:18 +0900)
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.TextureSet.cs
src/Tizen.NUI/src/public/Rendering/TextureSet.cs

index f05e2968f3b77f7da2dd05d1de97dd5dcf01c7f1..d4ba165e2d02f014aab38f0580488ec367d57902 100755 (executable)
@@ -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);
 
index a1d5584dddb3fa7f0e9cf5d9bdc2aed95de94ff3..0c977554bbe7455dd1eabd624b4b0fdec12cdad6 100755 (executable)
@@ -60,6 +60,17 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// <summary>
+        /// Removes the texture at position "index".
+        /// </summary>
+        /// <param name="index">The position in the texture set of the texture.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void RemoveTexture(uint index)
+        {
+            Interop.TextureSet.RemoveTexture(SwigCPtr, index);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
         /// <summary>
         /// Gets the image at position "index".
         /// </summary>
@@ -95,6 +106,17 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// <summary>
+        /// Removes the sampler at position "index".
+        /// </summary>
+        /// <param name="index">The position in the texture set of the sampler.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void RemoveSampler(uint index)
+        {
+            Interop.TextureSet.RemoveSampler(SwigCPtr, index);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
         /// <summary>
         /// Sets the sampler to be used by the image at position "index".
         /// </summary>