From: seungho baek Date: Tue, 28 Nov 2023 07:07:20 +0000 (+0900) Subject: Add SetResolution method to SceneView X-Git-Tag: accepted/tizen/unified/20231205.171444~1^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8ff2071dd99d274134dc79892fae94a282eafc3;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add SetResolution method to SceneView Change-Id: I5e16e09e3052f98b164570047876e04d1aea1b42 Signed-off-by: seungho baek --- diff --git a/dali-csharp-binder/dali-scene3d/scene-view-wrap.cpp b/dali-csharp-binder/dali-scene3d/scene-view-wrap.cpp index fd01ed84..e10d9284 100755 --- a/dali-csharp-binder/dali-scene3d/scene-view-wrap.cpp +++ b/dali-csharp-binder/dali-scene3d/scene-view-wrap.cpp @@ -391,6 +391,82 @@ extern "C" return result; } + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SceneView_SetResolution(void *csSceneView, uint32_t width, uint32_t height) + { + 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->SetResolution(width, height); + } + CALL_CATCH_EXCEPTION(); + } + } + + SWIGEXPORT uint32_t SWIGSTDCALL CSharp_Dali_SceneView_GetResolutionWidth(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->GetResolutionWidth()); + } + CALL_CATCH_EXCEPTION(0); + } + return result; + } + + SWIGEXPORT uint32_t SWIGSTDCALL CSharp_Dali_SceneView_GetResolutionHeight(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->GetResolutionHeight()); + } + CALL_CATCH_EXCEPTION(0); + } + return result; + } + + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SceneView_ResetResolution(void *csSceneView) + { + 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->ResetResolution(); + } + CALL_CATCH_EXCEPTION(); + } + } + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SceneView_SetFramebufferMultiSamplingLevel(void *csSceneView, uint32_t multiSamplingLevel) { Dali::Scene3D::SceneView *sceneView = (Dali::Scene3D::SceneView *)csSceneView;