internal static partial class Model
{
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_New_SWIG_1")]
- public static extern global::System.IntPtr ModelNew(string jarg1, string jarg2);
+ public static extern global::System.IntPtr ModelNew(string modelUrl, string resourcePasth);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_new_ModelView_SWIG_0")]
public static extern global::System.IntPtr NewModel();
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_new_ModelView_SWIG_1")]
- public static extern global::System.IntPtr NewModel(global::System.Runtime.InteropServices.HandleRef jarg1);
+ public static extern global::System.IntPtr NewModel(global::System.Runtime.InteropServices.HandleRef model);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_delete_ModelView")]
- public static extern void DeleteModel(global::System.Runtime.InteropServices.HandleRef jarg1);
+ public static extern void DeleteModel(global::System.Runtime.InteropServices.HandleRef model);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_Assign")]
- public static extern global::System.IntPtr ModelAssign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+ public static extern global::System.IntPtr ModelAssign(global::System.Runtime.InteropServices.HandleRef model, global::System.Runtime.InteropServices.HandleRef sourceModel);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_DownCast")]
- public static extern global::System.IntPtr ModelDownCast(global::System.Runtime.InteropServices.HandleRef jarg1);
+ public static extern global::System.IntPtr ModelDownCast(global::System.Runtime.InteropServices.HandleRef model);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_GetModelRoot")]
- public static extern global::System.IntPtr GetModelRoot(global::System.Runtime.InteropServices.HandleRef jarg1);
+ public static extern global::System.IntPtr GetModelRoot(global::System.Runtime.InteropServices.HandleRef model);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_FitSize")]
- public static extern global::System.IntPtr FitSize(global::System.Runtime.InteropServices.HandleRef jarg1, bool fit);
+ public static extern global::System.IntPtr FitSize(global::System.Runtime.InteropServices.HandleRef model, bool fit);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_FitCenter")]
- public static extern global::System.IntPtr FitCenter(global::System.Runtime.InteropServices.HandleRef jarg1, bool fit);
+ public static extern global::System.IntPtr FitCenter(global::System.Runtime.InteropServices.HandleRef model, bool fit);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_SetImageBasedLightSource")]
- public static extern global::System.IntPtr SetImageBasedLightSource(global::System.Runtime.InteropServices.HandleRef jarg1, string diffuse, string specular, float scaleFactor);
+ public static extern global::System.IntPtr SetImageBasedLightSource(global::System.Runtime.InteropServices.HandleRef model, string diffuse, string specular, float scaleFactor);
+
+ [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_SetImageBasedLightScaleFactor")]
+ public static extern global::System.IntPtr SetImageBasedLightScaleFactor(global::System.Runtime.InteropServices.HandleRef model, float scaleFactor);
+
+ [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_GetImageBasedLightScaleFactor")]
+ public static extern float GetImageBasedLightScaleFactor(global::System.Runtime.InteropServices.HandleRef model);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_GetAnimationCount")]
- public static extern uint GetAnimationCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+ public static extern uint GetAnimationCount(global::System.Runtime.InteropServices.HandleRef model);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_GetAnimation_1")]
- public static extern global::System.IntPtr GetAnimation(global::System.Runtime.InteropServices.HandleRef jarg1, uint index);
+ public static extern global::System.IntPtr GetAnimation(global::System.Runtime.InteropServices.HandleRef model, uint index);
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_ModelView_GetAnimation_2")]
- public static extern global::System.IntPtr GetAnimation(global::System.Runtime.InteropServices.HandleRef jarg1, string name);
+ public static extern global::System.IntPtr GetAnimation(global::System.Runtime.InteropServices.HandleRef model, string name);
}
}
}
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_SceneView_SetImageBasedLightSource")]
public static extern void SetImageBasedLightSource(global::System.Runtime.InteropServices.HandleRef sceneView, string diffuseUrl, string specularUrl, float scaleFactor);
+ [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_SceneView_SetImageBasedLightScaleFactor")]
+ public static extern global::System.IntPtr SetImageBasedLightScaleFactor(global::System.Runtime.InteropServices.HandleRef sceneView, float scaleFactor);
+
+ [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_SceneView_GetImageBasedLightScaleFactor")]
+ public static extern float GetImageBasedLightScaleFactor(global::System.Runtime.InteropServices.HandleRef sceneView);
+
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_SceneView_UseFramebuffer")]
public static extern void UseFramebuffer(global::System.Runtime.InteropServices.HandleRef sceneView, bool useFramebuffer);
}
/// <summary>
+ /// Set/Get the ImageBasedLight ScaleFactor.
+ /// Scale factor controls light source intensity in [0.0f, 1.0f]
+ /// </summary>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float ImageBasedLightScaleFactor
+ {
+ set
+ {
+ SetImageBasedLightScaleFactor(value);
+ }
+ get
+ {
+ return GetImageBasedLightScaleFactor();
+ }
+ }
+
+ /// <summary>
/// Changes Image Based Light according to the given input textures.
/// </summary>
/// <param name="diffuseUrl">The path of Cube map image that will be used as a diffuse IBL source.</param>
}
/// <summary>
+ /// Set the ImageBasedLight ScaleFactor.
+ /// </summary>
+ /// <param name="scaleFactor">Scale factor that controls light source intensity in [0.0f, 1.0f].</param>
+ private void SetImageBasedLightScaleFactor(float scaleFactor)
+ {
+ Interop.Model.SetImageBasedLightScaleFactor(SwigCPtr, scaleFactor);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Get the ImageBasedLight ScaleFactor.
+ /// </summary>
+ /// <returns>ImageBasedLightScaleFactor that controls light source intensity.</returns>
+ private float GetImageBasedLightScaleFactor()
+ {
+ float scaleFactor = Interop.Model.GetImageBasedLightScaleFactor(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return scaleFactor;
+ }
+
+ /// <summary>
/// Release swigCPtr.
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
}
/// <summary>
+ /// Set/Get the ImageBasedLight ScaleFactor.
+ /// Scale factor controls light source intensity in [0.0f, 1.0f]
+ /// </summary>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float ImageBasedLightScaleFactor
+ {
+ set
+ {
+ SetImageBasedLightScaleFactor(value);
+ }
+ get
+ {
+ return GetImageBasedLightScaleFactor();
+ }
+ }
+
+ /// <summary>
/// Set/Get the UseFramebuffer.
/// If this property is true, rendering result of SceneView is drawn on FBO and it is mapping on this SceneView plane.
/// If this property is false, each item in SceneView is rendered on window directly.
}
/// <summary>
+ /// Set the ImageBasedLight ScaleFactor.
+ /// </summary>
+ /// <param name="scaleFactor">Scale factor that controls light source intensity in [0.0f, 1.0f].</param>
+ private void SetImageBasedLightScaleFactor(float scaleFactor)
+ {
+ Interop.SceneView.SetImageBasedLightScaleFactor(SwigCPtr, scaleFactor);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Get the ImageBasedLight ScaleFactor.
+ /// </summary>
+ /// <returns>ImageBasedLightScaleFactor that controls light source intensity.</returns>
+ private float GetImageBasedLightScaleFactor()
+ {
+ float scaleFactor = Interop.SceneView.GetImageBasedLightScaleFactor(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return scaleFactor;
+ }
+
+ /// <summary>
/// Release swigCPtr.
/// </summary>
// This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)