From 74e065558d07f607be5f4db25aec84c6600ad561 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Thu, 10 Apr 2025 10:23:07 +0900 Subject: [PATCH] Bind Quaternion assign API Change-Id: I6fa93e02af117a4a356df2209b3e3f2a8bacf4e6 Signed-off-by: Eunki, Hong --- .../dali-core/rotation-wrap.cpp | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/dali-csharp-binder/dali-core/rotation-wrap.cpp b/dali-csharp-binder/dali-core/rotation-wrap.cpp index b1f8ed9c..1d823c80 100644 --- a/dali-csharp-binder/dali-core/rotation-wrap.cpp +++ b/dali-csharp-binder/dali-core/rotation-wrap.cpp @@ -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; -- 2.34.1