Add RemoveTexture and RemoveSampler in TextureSet binder 00/324900/2
authorSeungho Baek <sbsh.baek@samsung.com>
Wed, 28 May 2025 10:41:51 +0000 (19:41 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Thu, 29 May 2025 07:13:11 +0000 (16:13 +0900)
Change-Id: I6aac40c2f93d9fcfa3707f6b2202786f499a55d8
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
dali-csharp-binder/common/dali-wrap.cpp

index 6adf42c2179bd4f55b9e7514e16aadaff4ff1e77..c77195405bd00fa268d2c083b7b8c199b9650e4b 100644 (file)
@@ -10371,6 +10371,25 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextureSet_SetTexture(void * jarg1, unsi
 }
 
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextureSet_RemoveTexture(void * csTextureSet, unsigned long index) {
+  Dali::TextureSet* textureSet = (Dali::TextureSet*)csTextureSet;
+
+  if(!textureSet)
+  {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Texture", 0);
+    return;
+  }
+
+  {
+    try
+    {
+      Dali::Texture emptyTexture;
+      (textureSet)->SetTexture(index, emptyTexture);
+    }
+    CALL_CATCH_EXCEPTION();
+  }
+}
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextureSet_GetTexture(void * jarg1, unsigned long jarg2) {
   void * jresult ;
   Dali::TextureSet *arg1 = (Dali::TextureSet *) 0 ;
@@ -10413,6 +10432,26 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextureSet_SetSampler(void * jarg1, unsi
 }
 
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextureSet_RemoveSampler(void * csTextureSet, unsigned long index) {
+  Dali::TextureSet* textureSet = (Dali::TextureSet*)csTextureSet;
+
+  if(!textureSet)
+  {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Texture", 0);
+    return;
+  }
+
+  {
+    try
+    {
+      Dali::Sampler emptySampler;
+      (textureSet)->SetSampler(index, emptySampler);
+    }
+    CALL_CATCH_EXCEPTION();
+  }
+}
+
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextureSet_GetSampler(void * jarg1, unsigned long jarg2) {
   void * jresult ;
   Dali::TextureSet *arg1 = (Dali::TextureSet *) 0 ;