From: Eunki, Hong Date: Fri, 27 Jan 2023 07:11:30 +0000 (+0900) Subject: Bind SceneView.FramebufferMultiSamplingLevel X-Git-Tag: dali_2.2.12~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e44fa370a78733fe49354cced758df79728a2fa2;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Bind SceneView.FramebufferMultiSamplingLevel Change-Id: I64139fde06627001b68a550b139998b917877e91 Signed-off-by: Eunki, Hong --- diff --git a/dali-csharp-binder/src/scene-view-wrap.cpp b/dali-csharp-binder/src/scene-view-wrap.cpp index 4266560..de7e530 100755 --- a/dali-csharp-binder/src/scene-view-wrap.cpp +++ b/dali-csharp-binder/src/scene-view-wrap.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -391,6 +391,44 @@ extern "C" return result; } + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SceneView_SetFramebufferMultiSamplingLevel(void *csSceneView, uint32_t multiSamplingLevel) + { + Dali::Scene3D::SceneView *sceneView = (Dali::Scene3D::SceneView *)csSceneView; + + if (!sceneView) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::SceneView", 0); + return; + } + { + try + { + sceneView->SetFramebufferMultiSamplingLevel(static_cast(multiSamplingLevel)); + } + CALL_CATCH_EXCEPTION(); + } + } + + SWIGEXPORT uint32_t SWIGSTDCALL CSharp_Dali_SceneView_GetFramebufferMultiSamplingLevel(void *csSceneView) + { + Dali::Scene3D::SceneView *sceneView = (Dali::Scene3D::SceneView *)csSceneView; + uint32_t result = 0u; + + if (!sceneView) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::SceneView", 0); + return 0; + } + { + try + { + result = static_cast(sceneView->GetFramebufferMultiSamplingLevel()); + } + CALL_CATCH_EXCEPTION(0); + } + return result; + } + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SceneView_SetSkybox(void *csSceneView, char *skyboxUrl) { Dali::Scene3D::SceneView *sceneView = (Dali::Scene3D::SceneView *)csSceneView;