public int addHelperQuaternion(Quaternion start, Quaternion end, float time, Transform lerpedObj, FinishedCallBack callback) { lerpCountQ++; LerpingItems newItem; HelperUtil newHelper = new HelperUtil(); newItem.helper = newHelper; newItem.lerpedObj = lerpedObj; newItem.lerpID = lerpCountQ; newItem.helper.StartLerpQ(start, end, time); newItem.finished = callback; ActiveHelpersQuaternion.Add(newItem); return newItem.lerpID; }
public int addHelperBezier(Vector3 start, Vector3 c1, Vector3 c2, Vector3 end, float time, Transform lerpedObj, FinishedCallBack callback) { lerpCountB++; LerpingItems newItem; HelperUtil newHelper = new HelperUtil(); newItem.helper = newHelper; newItem.lerpedObj = lerpedObj; newItem.lerpID = lerpCountB; newItem.helper.StartBezier(start, c1, c2, end, time); newItem.finished = callback; ActiveHelpersBezier.Add(newItem); return newItem.lerpID; }
public static int Denoise(ImageCallBack image_callback, ProgressCallBack progress_CallBack, FinishedCallBack finished_callback) { if (File.Exists(input_image)) { if (Directory.Exists(Path.GetDirectoryName(output_image))) { input_files = new IntPtr[1]; output_files = new IntPtr[1]; input_files[0] = Marshal.StringToHGlobalAnsi(input_image); output_files[0] = Marshal.StringToHGlobalAnsi(output_image); return(DenoiseImp(1, input_files, output_files, blend, image_callback, progress_CallBack, finished_callback)); } MessageBox.Show("The output directory does not exist.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } else { MessageBox.Show("The input image does not exist.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } return(-1); }
public static extern int DenoiseImp(int file_count, IntPtr[] input_files, IntPtr[] output_files, float blend, ImageCallBack image_callback, ProgressCallBack progress_CallBack, FinishedCallBack finished_callback);
public int RegisterLerpMotionBezier(Vector3 start, Vector3 c1, Vector3 c2, Vector3 end, Transform lerpedObj, float time, FinishedCallBack callback) { return lerpHandler.addHelperBezier(start, c1, c2, end, time, lerpedObj, callback); }
/// <summary> /// with callback /// </summary> /// <param name="start"></param> /// <param name="end"></param> /// <param name="time"></param> /// <param name="lerpedObj"></param> /// <param name="callback"></param> /// <returns></returns> public int RegisterLerpMotionT(Vector3 start, Vector3 end, float time, Transform lerpedObj, FinishedCallBack callback) { return lerpHandler.addHelperTransform(start, end, time, lerpedObj, callback); }
/// <summary> /// with callback /// </summary> /// <param name="start"></param> /// <param name="end"></param> /// <param name="time"></param> /// <param name="lerpedObj"></param> /// <param name="callback"></param> /// <returns></returns> public int RegisterLerpMotionQ(Quaternion start, Quaternion end, float time, Transform lerpedObj, FinishedCallBack callback) { return lerpHandler.addHelperQuaternion(start, end, time, lerpedObj, callback); }
public int addHelperTransform(Vector3 start, Vector3 end, float time, Transform lerpedObj, FinishedCallBack callback) { lerpCountT++; LerpingItems newItem; HelperUtil newHelper = new HelperUtil(); newItem.helper = newHelper; newItem.lerpedObj = lerpedObj; newItem.lerpID = lerpCountT; newItem.helper.StartLerp(start, end, time); newItem.finished = callback; ActiveHelpersTransform.Add(newItem); return newItem.lerpID; }