From: Seungho Baek Date: Wed, 28 May 2025 10:41:51 +0000 (+0900) Subject: Add RemoveTexture and RemoveSampler in TextureSet binder X-Git-Tag: dali_2.4.21~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d21be682095be27a92944c39ff2e9696662e10bd;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add RemoveTexture and RemoveSampler in TextureSet binder Change-Id: I6aac40c2f93d9fcfa3707f6b2202786f499a55d8 Signed-off-by: Seungho Baek --- diff --git a/dali-csharp-binder/common/dali-wrap.cpp b/dali-csharp-binder/common/dali-wrap.cpp index 6adf42c2..c7719540 100644 --- a/dali-csharp-binder/common/dali-wrap.cpp +++ b/dali-csharp-binder/common/dali-wrap.cpp @@ -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 ;