[NUI.Scene3D] Add Shadow for a Directional Light
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Scene3D / src / internal / Interop / Interop.Light.cs
1 /*
2  * Copyright(c) 2023 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 namespace Tizen.NUI.Scene3D
19 {
20     internal static partial class Interop
21     {
22         internal static partial class Light
23         {
24             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_New_SWIG_0")]
25             public static extern global::System.IntPtr New();
26
27             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_new_Light_SWIG_0")]
28             public static extern global::System.IntPtr NewLight();
29
30             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_new_Light_SWIG_1")]
31             public static extern global::System.IntPtr NewLight(global::System.Runtime.InteropServices.HandleRef light);
32
33             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_delete_Light")]
34             public static extern void DeleteLight(global::System.Runtime.InteropServices.HandleRef light);
35
36             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_DownCast")]
37             public static extern global::System.IntPtr LightDownCast(global::System.Runtime.InteropServices.HandleRef light);
38
39             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_Enable")]
40             public static extern void Enable(global::System.Runtime.InteropServices.HandleRef light, bool enable);
41
42             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_IsEnabled")]
43             [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
44             public static extern bool IsEnabled(global::System.Runtime.InteropServices.HandleRef light);
45
46             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_GetMaximumEnabledLightCount")]
47             public static extern uint GetMaximumEnabledLightCount();
48
49             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_EnableShadow")]
50             public static extern void EnableShadow(global::System.Runtime.InteropServices.HandleRef light, bool enable);
51
52             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_IsShadowEnabled")]
53             [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
54             public static extern bool IsShadowEnabled(global::System.Runtime.InteropServices.HandleRef light);
55
56             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_EnableShadowSoftFiltering")]
57             public static extern void EnableShadowSoftFiltering(global::System.Runtime.InteropServices.HandleRef light, bool enable);
58
59             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_IsShadowSoftFilteringEnabled")]
60             [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
61             public static extern bool IsShadowSoftFilteringEnabled(global::System.Runtime.InteropServices.HandleRef light);
62
63             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_SetShadowIntensity")]
64             public static extern void SetShadowIntensity(global::System.Runtime.InteropServices.HandleRef light, float shadowIntensity);
65
66             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_GetShadowIntensity")]
67             public static extern float GetShadowIntensity(global::System.Runtime.InteropServices.HandleRef light);
68
69             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_SetShadowBias")]
70             public static extern void SetShadowBias(global::System.Runtime.InteropServices.HandleRef light, float shadowIntensity);
71
72             [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Light_GetShadowBias")]
73             public static extern float GetShadowBias(global::System.Runtime.InteropServices.HandleRef light);
74         }
75     }
76 }