2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-scene3d/public-api/light/light.h>
28 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_Light_New_SWIG_0()
30 Dali::Scene3D::Light result;
35 result = Dali::Scene3D::Light::New();
37 CALL_CATCH_EXCEPTION(0);
40 return new Dali::Scene3D::Light((const Dali::Scene3D::Light&)result);
43 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_Light_SWIG_0()
45 Dali::Scene3D::Light* result = 0;
50 result = (Dali::Scene3D::Light*)new Dali::Scene3D::Light();
52 CALL_CATCH_EXCEPTION(0);
58 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_Light_SWIG_1(void* csLight)
60 Dali::Scene3D::Light* light = (Dali::Scene3D::Light*)csLight;
61 Dali::Scene3D::Light* result = 0;
65 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::Light const & type is null", 0);
71 result = (Dali::Scene3D::Light*)new Dali::Scene3D::Light((Dali::Scene3D::Light const&)*light);
73 CALL_CATCH_EXCEPTION(0);
79 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Light(void* csLight)
81 Dali::Scene3D::Light* light = (Dali::Scene3D::Light*)csLight;
87 CALL_CATCH_EXCEPTION();
91 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_Light_Assign(void* csDestination, void* csSource)
93 Dali::Scene3D::Light* destination = (Dali::Scene3D::Light*)csDestination;
94 Dali::Scene3D::Light* source = (Dali::Scene3D::Light*)csSource;
95 Dali::Scene3D::Light* result = 0;
99 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::Light const & type is null", 0);
105 result = (Dali::Scene3D::Light*)&(destination)->operator=((Dali::Scene3D::Light const&)*source);
107 CALL_CATCH_EXCEPTION(0);
110 return (void*)result;
113 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_Light_DownCast(void* csHandle)
115 Dali::BaseHandle* handle = (Dali::BaseHandle*)csHandle;
116 Dali::Scene3D::Light result;
120 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::Light", 0);
126 result = Dali::Scene3D::Light::DownCast(*handle);
128 CALL_CATCH_EXCEPTION(0);
131 return new Dali::Scene3D::Light((const Dali::Scene3D::Light&)result);
134 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Light_Enable(void* csLight, bool enable)
136 Dali::Scene3D::Light* light = (Dali::Scene3D::Light*)csLight;
140 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::Light", 0);
146 light->Enable(enable);
148 CALL_CATCH_EXCEPTION();
151 SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Light_IsEnabled(void* csLight)
153 Dali::Scene3D::Light* light = (Dali::Scene3D::Light*)csLight;
158 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::Light", 0);
164 result = light->IsEnabled();
166 CALL_CATCH_EXCEPTION(0);
171 SWIGEXPORT uint32_t SWIGSTDCALL CSharp_Dali_SceneView_GetMaximumEnabledLightCount()
173 uint32_t result = 0u;
176 result = static_cast<uint32_t>(Dali::Scene3D::Light::GetMaximumEnabledLightCount());
178 CALL_CATCH_EXCEPTION(0);