Bind Quaternion assign API 91/322491/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 10 Apr 2025 01:23:07 +0000 (10:23 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 10 Apr 2025 01:23:07 +0000 (10:23 +0900)
Change-Id: I6fa93e02af117a4a356df2209b3e3f2a8bacf4e6
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-csharp-binder/dali-core/rotation-wrap.cpp

index b1f8ed9c00afa30ed712ac919f6fbaa163b7ae4b..1d823c80fd2045c00bb9b3cad005d0dda04e5495 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -158,6 +158,29 @@ SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_Rotation_4(void* nuiVector4)
   return jresult;
 }
 
+SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_Rotation_Assign(void * jarg1, void * jarg2)
+{
+  void * jresult ;
+  Dali::Quaternion *arg1 = (Dali::Quaternion *) 0 ;
+  Dali::Quaternion *arg2 = 0 ;
+  Dali::Quaternion *result = 0 ;
+
+  arg1 = (Dali::Quaternion *)jarg1;
+  arg2 = (Dali::Quaternion *)jarg2;
+  if (!arg2) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Quaternion const & type is null", 0);
+    return 0;
+  }
+  {
+    try {
+      result = (Dali::Quaternion *) &(arg1)->operator =((Dali::Quaternion const &)*arg2);
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = (void *)result;
+  return jresult;
+}
+
 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Rotation(void* nuiRotation)
 {
   Dali::Quaternion* quaternion = (Dali::Quaternion*)0;