[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Model_LoadBvhAnimation_1")]
public static extern global::System.IntPtr LoadBvhAnimation(global::System.Runtime.InteropServices.HandleRef model, string bvhFilename, global::System.Runtime.InteropServices.HandleRef scale);
+ [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Model_LoadBvhAnimation_2")]
+ public static extern global::System.IntPtr LoadBvhAnimationFromBuffer(global::System.Runtime.InteropServices.HandleRef model, string bvhBuffer, int bvhBufferLength, global::System.Runtime.InteropServices.HandleRef scale);
+
[global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Model_LoadFacialAnimation_1")]
public static extern global::System.IntPtr LoadFacialAnimation(global::System.Runtime.InteropServices.HandleRef model, string facialFilename);
+
+ [global::System.Runtime.InteropServices.DllImport(Libraries.Scene3D, EntryPoint = "CSharp_Dali_Model_LoadFacialAnimation_2")]
+ public static extern global::System.IntPtr LoadFacialAnimationFromBuffer(global::System.Runtime.InteropServices.HandleRef model, string facialBuffer, int facialBufferLength);
}
}
}
}
/// <summary>
+ /// Load bvh animation and assign to model.
+ /// Scale is additional scale factor of bvh animation. It is possible that
+ /// Model's scale may not matched with bvh animation scale.
+ /// If scale is null, default use as Vector3.ONE
+ /// </summary>
+ /// <param name="bvhBuffer">Contents of bvh format file.</param>
+ /// <param name="scale">Scale value of bvh animation match with model.</param>
+ /// <returns>Animaion of bvh</returns>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Animation LoadBvhAnimationFromBuffer(string bvhBuffer, Vector3 scale = null)
+ {
+ global::System.IntPtr cPtr = Interop.Model.LoadBvhAnimationFromBuffer(SwigCPtr, bvhBuffer, bvhBuffer.Length, Vector3.getCPtr(scale));
+ Animation ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Animation;
+ if (ret == null)
+ {
+ // Register new animation into Registry.
+ ret = new Animation(cPtr, true);
+ }
+ else
+ {
+ // We found matched NUI animation. Reduce cPtr reference count.
+ HandleRef handle = new HandleRef(this, cPtr);
+ Tizen.NUI.Interop.Animation.DeleteAnimation(handle);
+ handle = new HandleRef(null, IntPtr.Zero);
+ }
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
/// Load facial animation and assign to model.
/// </summary>
/// <param name="facialFilename">Name of json format file what we predefined.</param>
}
/// <summary>
+ /// Load facial animation and assign to model.
+ /// </summary>
+ /// <param name="facialBuffer">Contents of json format file what we predefined.</param>
+ /// <returns>Animaion of facial</returns>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Animation LoadFacialAnimationFromBuffer(string facialBuffer)
+ {
+ global::System.IntPtr cPtr = Interop.Model.LoadFacialAnimationFromBuffer(SwigCPtr, facialBuffer, facialBuffer.Length);
+ Animation ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Animation;
+ if (ret == null)
+ {
+ // Register new animation into Registry.
+ ret = new Animation(cPtr, true);
+ }
+ else
+ {
+ // We found matched NUI animation. Reduce cPtr reference count.
+ HandleRef handle = new HandleRef(this, cPtr);
+ Tizen.NUI.Interop.Animation.DeleteAnimation(handle);
+ handle = new HandleRef(null, IntPtr.Zero);
+ }
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
/// Retrieves model root Actor.
/// </summary>
/// <returns>Root View of the model.</returns>